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

2007-02-28 Thread Matthew Woehlke
Bob Proulx wrote: Matthew Woehlke wrote: Бојан Ландекић wrote: Is it possible to put bash on some portable media and use it on a system that is bash-less without worrying about dependencies? Not unless you build it statically, it isn't. :-) Although I think if you build bash it gi

Re: Bash getopts option

2007-02-28 Thread Matthew Woehlke
Shanks wrote: I am trying to parse command line options using getopts. for parsing options that are words , for e.g -help, Bash is not allowing me to do that. while getopts c:d:fh:help options do case $options in help) echo" Help" ;; done The above code does not parse

Bash getopts option

2007-02-28 Thread Shanks
I am trying to parse command line options using getopts. for parsing options that are words , for e.g -help, Bash is not allowing me to do that. while getopts c:d:fh:help options do case $options in help) echo" Help" ;; done The above code does not parse -help option. A

Race condition determining value of $? variable

2007-02-28 Thread Марк Коренберг
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: linux-gnu Compiler: i386-redhat-linux-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DSHELL -DHAVE_CONFI