Eric Blake wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Jim Meyering on 4/16/2008 6:30 AM:
| My first reaction was "great! that looks much better".
| Unfortunately, the technique doesn't work with that shell:
|
| openbsd$ ./mknod --version|head -1
| mknod (GNU coreutils) 6.10.188-7cb24
| openbsd$ PATH=. /bin/sh -c 'mknod --version'|head -1
| /bin/sh: mknod: --: unknown option
| /bin/sh: mknod: usage: mknod [-m mode] name [b | c] major minor
| /bin/sh: mknod: usage: mknod [-m mode] name p
That still uses a builtin. You need an exec in the loop to force a PATH
search (even command, which bypasses functions, won't bypass builtins).
Or perhaps a forwarding command will help; do any of these work?
$ /bin/sh -c '(exec mknod --version)' | head -1
$ /bin/sh -c 'nice mknod --version' | head -1
$ /bin/sh -c 'nohup mknod --version' | head -1
I realize you already pushed something, but for the record, wouldn't
'env' work as well (and without the side effects)?
--
Matthew
> pinotree uses the large trout on tsdgeos and PutHuhn :)
> PutHuhn runs
> tsdgeos lights a fire and eats the trout
(with apologies to Pino Toscano, PutHuhn and Albert Astals Cid, who came
up with this entirely on their own)
_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils