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
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
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
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
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
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
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
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,