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 AL

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: question about exit command

2011-01-19 Thread Andreas Schwab
Davide Brini writes: > I was not wondering about what's inside the parentheses, but rather why this > works > > if (somecommand) then ... > > while I would expect it should be > > if (somecommand); then ... You only need the separator to trigger the recognition of a reserved word, since they ar

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

Re: question about exit command

2011-01-19 Thread Davide Brini
On Wednesday 19 Jan 2011 13:37:30 Greg Wooledge wrote: > 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

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

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

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,