On Mon, 26 Feb 2007 10:40:14 +0200 "era eriksson" <[EMAIL PROTECTED]> wrote:
> > Pipes seem ideal, { for a 'Providers:' field } since for '.deb's they mean > > XOR. > > Well, they clutter the output, and don't really add anything. Just a > whitespace separator makes the data easier to cut and paste. I'm not > at all really sure how to prioritize this. True, whitespace is easier for cutting and pasting to another command line. But 'dlocate' already uses '|' and ','. Depending on the field, those chars have different logical meanings: ',' '|' Depends: AND XOR Recommends: OR n/a Suggests: OR n/a The '|' seems to be used consistantly, and would be accurate for a 'Providers' field. I'm not sure if it's a bug or not that the ',' has field dependent meanings. >>>>>>>>>>>>digressions start<<<<<<<<<<<<<< A 'wishlist' bug that might follow from this is an output flag that prints these fields with whitespace separators. For 'Depends' it should also remove anything between parenthesis. But replacing a '|' with whitespace in 'Depends:' would make trouble. Tricky... I think an X clipboard tool with filters would be help. You'd select the line, so it goes in the clipboard. Click on your clipboard icon in the taskbar, maybe check a box next to the filter you wanted, ("no commas" let's say), then paste it. >>>>>>>>>>>>digressions end<<<<<<<<<<<<<<<< > > Interesting point about 'dlocate' having its own conventions for > > switch syntax. Instead of '-v' then, any mnemonic suggesting > > 'Virtual' would do > > I humbly suggest '-virtual' to go with the other full-length options > (-conf, -lsconf, -md5sum, -md5check, -man -- these have a single > hyphen, too) I like '-virtual'. > ... Or simply replacing the current option processing with something a > little less insane, but that would entail breaking backwards > compatibility. Privately, I've been toying with the idea to create a > competing package which straightens out some of dlocate's quirks. > Unfortunately, I'm afraid I can't commit to being a more active > maintainer than the current (non-)maintainer of dlocate. If it's mainly just syntax, howbout a wrapper script? If you can stay in the Bourne shell, or even 'bash', it would have virtually no dependencies. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]