[Novalug] Shell Puzzle Challenge
James Ewing Cottrell 3rd
JECottrell3 at Comcast.NET
Fri Mar 16 19:36:40 EDT 2012
Flowers for Bergeron! I could have indeed been clearer if I had said "is
an element of $PATH", or even better, "is one of the default directories
that commands will be search for".
In this case, /bin is only an atom, not a complete element, and would fail.
On 3/16/2012 6:02 PM, RJ Bergeron wrote:
> Unfortunately, the examples aren't making it clear what you'd want it
> to do in this case:
> export PATH=/usr/bin
> ispath /bin
> echo $?
> Would this match due to "/bin" being in the string or fail due to
> "/bin" not being a complete path element?
More information about the Novalug