Re: /usr/bin/[ what is it?

2006-08-15 Thread Steve Lamb
Roger Leigh wrote: Or even /usr/bin/[ --help /usr/bin/[ --version Bad suggestion. While you and I know what this is (and know it is harmless) if a person is concerned about a binary and what it does having outside verification of what it does is far preferable to running what is, to

Re: /usr/bin/[ what is it?

2006-08-15 Thread Steve Lamb
Ron Johnson wrote: Problems with shell expansion: 1. If your glob expands very large, the command buffer will overflow. 2. You can only pass wild-carded filenames. 3. You've got to escape re characters 4. You have to escape pretty much any variable you want to pass unexpanded to a

Re: /usr/bin/[ what is it?

2006-08-11 Thread Matus UHLAR - fantomas
From: John Hasler [EMAIL PROTECTED] It's perfectly sane behavior, though not properly documented. 'dpkg -S' accepts regular expressions. Try dpkg -S '/bin/[a-z]s' On 10.08.06 17:10, Mathias Brodala wrote: Are you sure that it supports regular expressions? dpkg uses shell

Re: /usr/bin/[ what is it?

2006-08-11 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matus UHLAR - fantomas wrote: From: John Hasler [EMAIL PROTECTED] [snip] On 10.08.06 12:05, John Hasler wrote: Ls doesn't do globbing. The shell does. Exactly. Unlike DOS, in UNIX it's up to shell to expand filenames for programs, so programs

/usr/bin/[ what is it?

2006-08-10 Thread Johannes Wiedersich
I just stumbled over this: johannes2:~# ll /usr/bin/[ -rwxr-xr-x 1 root root 24816 2006-08-04 03:08 /usr/bin/[ No idea, what this means or how it got on my system. [EMAIL PROTECTED]:~$ dpkg -S /usr/bin/[ dpkg: /usr/bin/[ not found. [EMAIL PROTECTED]:~$ dpkg -S /usr/bin/\[ dpkg: /usr/bin/[ not

Re: /usr/bin/[ what is it?

2006-08-10 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johannes Wiedersich wrote: I just stumbled over this: johannes2:~# ll /usr/bin/[ -rwxr-xr-x 1 root root 24816 2006-08-04 03:08 /usr/bin/[ No idea, what this means or how it got on my system. [EMAIL PROTECTED]:~$ dpkg -S /usr/bin/[ dpkg:

Re: /usr/bin/[ what is it?

2006-08-10 Thread Mathias Brodala
Hello Johannes. I just stumbled over this: johannes2:~# ll /usr/bin/[ -rwxr-xr-x 1 root root 24816 2006-08-04 03:08 /usr/bin/[ No idea, what this means or how it got on my system. It exists to provide the alternative syntax for the „test“ command. Just look at the manpage: man \[

Re: /usr/bin/[ what is it?

2006-08-10 Thread Roger Leigh
Ron Johnson [EMAIL PROTECTED] writes: johannes2:~# ll /usr/bin/[ -rwxr-xr-x 1 root root 24816 2006-08-04 03:08 /usr/bin/[ dpkg -S is a smart idea, but too clever this time. Plain old man will tell you what you need to know. Or even /usr/bin/[ --help /usr/bin/[ --version -- .''`.

Re: /usr/bin/[ what is it?

2006-08-10 Thread Dwayne C. Litzenberger
On Thu, Aug 10, 2006 at 10:17:46AM +0200, Johannes Wiedersich wrote: [EMAIL PROTECTED]:~$ dpkg -S /usr/bin/[ dpkg: /usr/bin/[ not found. [EMAIL PROTECTED]:~$ dpkg -S /usr/bin/\[ dpkg: /usr/bin/[ not found. $ dpkg -S '/usr/bin/\[' coreutils: /usr/bin/[ man dpkg(1) says: dpkg -S

Re: /usr/bin/[ what is it?

2006-08-10 Thread Jörg-Volker Peetz
Johannes Wiedersich wrote: [EMAIL PROTECTED]:~$ dpkg -S /usr/bin/[ dpkg: /usr/bin/[ not found. [EMAIL PROTECTED]:~$ dpkg -S /usr/bin/\[ dpkg: /usr/bin/[ not found. dpkg -S /usr/bin/\\[ (two backslashes) will do it. Regards, Jörg-Volker. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED]

Re: /usr/bin/[ what is it?

2006-08-10 Thread Jon Dowland
At 1155211042 past the epoch, Jörg-Volker Peetz wrote: dpkg -S /usr/bin/\\[ (two backslashes) will do it. Urgh nasty... I wonder if there's a bug to be filed there. -- Jon Dowland http://alcopop.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble?

Re: /usr/bin/[ what is it?

2006-08-10 Thread Roger Leigh
Jon Dowland [EMAIL PROTECTED] writes: At 1155211042 past the epoch, Jörg-Volker Peetz wrote: dpkg -S /usr/bin/\\[ (two backslashes) will do it. Urgh nasty... I wonder if there's a bug to be filed there. I think so. It doesn't look like sane behaviour, even if you quote it: $ dpkg -S

Re: /usr/bin/[ what is it?

2006-08-10 Thread John Hasler
Jörg-Volker Peetz wrote: dpkg -S /usr/bin/\\[ (two backslashes) will do it. Jon Dowland writes: Urgh nasty... I wonder if there's a bug to be filed there. Roger Leigh writes: I think so. It doesn't look like sane behaviour, even if you quote it: $ dpkg -S '/usr/bin/[' dpkg: /usr/bin/[

Re: /usr/bin/[ what is it?

2006-08-10 Thread Mathias Brodala
Hello John. It's perfectly sane behavior, though not properly documented. 'dpkg -S' accepts regular expressions. Try dpkg -S '/bin/[a-z]s' Are you sure that it supports regular expressions? $ dpkg -S '/usr/bin/X.*' dpkg: /usr/bin/X.* not found. But: $ dpkg -S '/usr/bin/X*'

Re: /usr/bin/[ what is it?

2006-08-10 Thread John Hasler
Mathias Brodala writes: Don’t you think that it supports only some kind of globbing like ls and others do? Ls doesn't do globbing. The shell does. But you're right: looks like dpkg just does some sort of globbing. The authors evidently believe that 'filename-search-pattern' tells you