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
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
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
-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
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
-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:
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 \[
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
--
.''`.
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
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]
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?
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
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/[
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*'
Mathias Brodala writes:
Dont 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
15 matches
Mail list logo