Hello Ralph!

Ralph Corderoy <[email protected]> wrote:
 |> We use command -v, which should not return something for which no
 |> executable bit is set?
 |
 |    $ >/tmp/foo
 |    $ PATH=/tmp:$PATH bash -c 'command -v foo'
 |    /tmp/foo
 |    $ >/tmp/ls
 |    $ PATH=/tmp:$PATH bash -c 'command -v ls'
 |    /usr/bin/ls

Boo-ho!!  To me this looks like a bug in bash and dash, since the
result is not a command that could be executed would -v not have
been used!??  Did you try this out or did you know a context on
that issue, Ralph?

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

Reply via email to