Variable getopts lost

2010-02-22 Thread DanielBu
Hello all, I get crazy with getopts: Some Times my script (500 Lines) don't take input parameters like this: /bin/bash pdf2media.sh -f 9 -l 104 Document.pdf the script reads -f 9 and Documents.pdf but missing -l 104 It did work for a log time - I know there was a problem some times bevor. Afte

Re: how to crash bash in two easy ways

2010-02-22 Thread Chet Ramey
On 2/22/10 1:03 PM, pbr wrote: > On Feb 22, 10:00 am, Chet Ramey wrote: >> On 2/22/10 5:30 AM, pbr wrote: >> >>> Bash dies with a segmentation fault anytime I type in either >>> "BASH_ALIASES=" or "BASH_CMDS=" >> >> This was fixed in bash-4.1. >> >> Chet >> -- >> ``The lyf so short, the craft so

Re: how to crash bash in two easy ways

2010-02-22 Thread pbr
On Feb 22, 10:00 am, Chet Ramey wrote: > On 2/22/10 5:30 AM, pbr wrote: > > > Bash dies with a segmentation fault anytime I type in either > > "BASH_ALIASES=" or "BASH_CMDS=" > > This was fixed in bash-4.1. > > Chet > -- > ``The lyf so short, the craft so long to lerne.'' - Chaucer >            

Re: how to crash bash in two easy ways

2010-02-22 Thread Chet Ramey
On 2/22/10 5:30 AM, pbr wrote: > Bash dies with a segmentation fault anytime I type in either > "BASH_ALIASES=" or "BASH_CMDS=" > > Repeat-By: > > Type "B A S H _ A L I A S E S =" (without spaces) and then > enter, at the command line. > Or, "B A S H _ C M D S =" (without

Re: how to crash bash in two easy ways

2010-02-22 Thread Christopher Roy Bratusek
Am Mon, 22 Feb 2010 02:30:32 -0800 (PST) schrieb pbr : > bashbug called sendmail, a link to exim4 which silently ignored the > following (which is a bug in its own right) so I'll post this manually > instead. > > I found two one-liners which crash bash. > > Configuration Information [Automatical

how to crash bash in two easy ways

2010-02-22 Thread pbr
bashbug called sendmail, a link to exim4 which silently ignored the following (which is a bug in its own right) so I'll post this manually instead. I found two one-liners which crash bash. Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: