Re: bash guru wanted

2003-01-03 Thread Michael Naumann
04.01.2003 01:34:03, Cameron Hutchison <[EMAIL PROTECTED]> wrote: >You can do it with the variable PROMPT_COMMAND. Its value is executed >prior to each prompt. > >eg. > >function job_test { > if [ -z "$(jobs)" ] ; then >set +o ignoreeof > else >set -o ignoreeof > fi >} > >PROMPT_COMMAND=

Re: bash guru wanted

2003-01-03 Thread Cameron Hutchison
Once upon a time Michael Naumann said... > > >>I want my bash to obey eof (^D) only if there are no jobs in the background. You can do it with the variable PROMPT_COMMAND. Its value is executed prior to each prompt. eg. function job_test { if [ -z "$(jobs)" ] ; then set +o ignoreeof els

Re: bash guru wanted

2003-01-02 Thread Thorsten Haude
Hi, * Michael Naumann <[EMAIL PROTECTED]> [2003-01-02 12:12]: >02.01.2003 00:52:05, Thorsten Haude <[EMAIL PROTECTED]> wrote: >>[Zsh] > >Thanx for your tip, >But this would not help me. As I stated, the warning is also issued by bash >and disowning jobs is also possible. Ah, sorry, I didn't read

Re: bash guru wanted

2003-01-02 Thread Michael Naumann
02.01.2003 00:52:05, Thorsten Haude <[EMAIL PROTECTED]> wrote: >Hi, > >* Michael Naumann <[EMAIL PROTECTED]> [2003-01-02 00:33]: >>I want my bash to obey eof (^D) only if there are no jobs in the background. > >I can't help you with the Bash, but I recommend the Zsh. The Zsh warns >you if you have

Re: bash guru wanted

2003-01-01 Thread Thorsten Haude
Hi, * Michael Naumann <[EMAIL PROTECTED]> [2003-01-02 00:33]: >I want my bash to obey eof (^D) only if there are no jobs in the background. I can't help you with the Bash, but I recommend the Zsh. The Zsh warns you if you have running jobs, and only exits if you give the command a second time. Yo