![]() |
Making a variable sub-shell accessible?
Hey guys, how do you make a variable accessible to a subshell? Also, do you use for OR aka || in a pathname? Is it ||? Thanks for any help.
|
:
#Bourne shell:
if [[ -d /path/one || -d /path/two ]] ; then |
if you wanna specify OR in a conditional its -o i believe. i.e
:
if [ -d /path/one -o -d /path/two ] ; thenassuming thats what you are asking. |
| All times are GMT -5. The time now is 9:28 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC