On 10/30/2012 10:58 AM, [email protected] wrote:
>   Looks to me like the first test only tests if $1 is not at the end of 
> $PATHor am I missing something?    ----- Original Message -----From: 
> "Jerry Feldman" >;[email protected]
>
No, it tests is $1 exists in $PATH.
I really hate bash pattern matching because I have to read the manual
every time I use them.
in this case '*:"$1":*' looks for $1 anywhere in $PATH.

-- 
Jerry Feldman <[email protected]>
Boston Linux and Unix
PGP key id:3BC1EB90 
PGP Key fingerprint: 49E2 C52A FC5A A31F 8D66  C0AF 7CEA 30FC 3BC1 EB90


_______________________________________________
Discuss mailing list
[email protected]
http://lists.blu.org/mailman/listinfo/discuss

Reply via email to