Results 1 to 2 of 2
Hi Guyzzz,
[ ! -x $name ] && { .........}
Is this the different notation for if statement like
if [ .... ] then fi
Please give me some inputs..
...
- 03-19-2009 #1Just Joined!
- Join Date
- Jun 2008
- Location
- Chennai
- Posts
- 6
[ ! -x $name ] && { .........} is different notation if statement in script?
Hi Guyzzz,
[ ! -x $name ] && { .........}
Is this the different notation for if statement like
if [ .... ] then fi
Please give me some inputs..
thanks
Raghu
- 03-24-2009 #2
Subshells --- see curly brackets and scoping. { ... } is used for running something inside the same/parent shell instead of creating a new subshell/child shell.
For if-then-else-fi see Author's Home page (Mendel Copper Advance Bash Scripting)


Reply With Quote