Re: GNU bash, 3.00.15(1)-release, referenced cmd in cwd executes alternate cmd

2007-03-01 Thread Bob Proulx
Matthew Woehlke wrote: > Apparently selectively shadowing libc is non-trivial... any > suggestions/hints? Not so much non-trivial as perhaps non-obvious. The dynamic loader is part of libc and so by the time the program tries to use LD_LIBRARY_PATH it is already too late because it has already l

Re: Bash getopts option

2007-03-01 Thread Bob Proulx
Matthew Woehlke wrote: > Shanks wrote: > >The above code does not parse -help option. Any suggestions > > I don't think getopts knows how to parse words as options (and not as > non-GNU-style, certainly). You are probably better off writing your own > parser, something like this: Personally I p