"Terminated" message from kill

2008-09-30 Thread Glenn Morris
Hi, This is a question similar to one from September 2006: http://lists.gnu.org/archive/html/bug-bash/2006-09/msg00077.html Using bash 3.2.39 on x86_64 RHEL5.2, I have a script with contents: function bar () { sleep 10 & pid=$! exec 3>&2 2>/dev/null kill $pid #usleep 1

Re: Bash prints syntax error when command in $(...) contains case-esac

2008-09-30 Thread Chet Ramey
> Machine Type: i686-pc-cygwin > > Bash Version: 3.2 > Patch Level: 9 > Release Status: release > > Description: > If a command in $(...) contains a case-esac construction, the > bash prints a syntax error instead > of executing the code: > bash: syntax error near unexpec

Re: Bash prints syntax error when command in $(...) contains case-esac

2008-09-30 Thread Jan Schampera
Juergen Gohlke wrote: Description: If a command in $(...) contains a case-esac construction, the bash prints a syntax error instead of executing the code: bash: syntax error near unexpected token `;;' In case you have trouble with code you need, use this workaround: x=$

Re: Graceful Exit

2008-09-30 Thread Roman Rakus
rayparrish wrote: Hello, I am writing a System Report script for Ubuntu, and even 'though I have the word exit on the last line of the script, when I run the script in terminal I have to hit enter a second time after running the script to get the terminal prompt back. I'm uploading the script,

[Fwd: Re: File renaming using SED in BASH]

2008-09-30 Thread Roman Rakus
--- Begin Message --- MisterMuv wrote: Hi, I am having a problem renaming a files using SED. The filenames are in the following format: eg 001 - GreatPics1 (The Opening) (www.somewhere.net).jpg 002 - GreatPics2 (The Closing) (www.somewhere.net).jpg 003 - GreatPics3 (The Ending) (www.somewher

Re: Bash prints syntax error when command in $(...) contains case-esac

2008-09-30 Thread Bernd Eggink
Juergen Gohlke schrieb: Configuration Information [Automatically generated, do not change]: Machine: i686 OS: cygwin Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/

Bash prints syntax error when command in $(...) contains case-esac

2008-09-30 Thread Juergen Gohlke
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: cygwin Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'