question about exit command

2011-01-19 Thread ali hagigat
I have two script files and I execute them as follows: - #script1 echo ppp exit 0 echo qqq /root ./script1 ppp - #script2 if (exit 0) then echo ppp fi /root ./script2 ppp - In script1,

Re: question about exit command

2011-01-19 Thread Davide Brini
On Wednesday 19 Jan 2011 10:42:21 ali hagigat wrote: I have two script files and I execute them as follows: - #script1 echo ppp exit 0 echo qqq /root ./script1 ppp - #script2 if (exit 0) then echo ppp fi

Re: question about exit command

2011-01-19 Thread Greg Wooledge
On Wed, Jan 19, 2011 at 10:49:47AM +, Davide Brini wrote: In your second script, the exit 0 part runs in a subshell, so exit exits that subshell (and I'm somewhat surprised that no semicolon is required after the closing bracket, but I may have missed something in the grammar). He had

Re: question about exit command

2011-01-19 Thread Greg Wooledge
On Wed, Jan 19, 2011 at 01:43:34PM +, Davide Brini wrote: From wikipedia: Parentheses (singular, parenthesis) ??? also called simply brackets (UK), or round brackets, curved brackets, oval brackets, or, colloquially, parens... Oh joy... another weird British thing I wasn't aware of.

help builtin bug ???

2011-01-19 Thread SÅ‚awomir Iwanek
hello, I did something like that: $ help * and I got all the definitions of builtins starting from the letter 'c' that is from 'caller' through 'coproc'. Well, my goal was - as you probably happen to know it already ;) - to see if I could display ALL the builtins defs, but well... I got what I

Re: help builtin bug ???

2011-01-19 Thread Mart Frauenlob
On 20.01.2011 01:22, SÅ‚awomir Iwanek wrote: hello, I did something like that: $ help * and I got all the definitions of builtins starting from the letter 'c' that is from 'caller' through 'coproc'. Well, my goal was - as you probably happen to know it already ;) - to see if I could display