jumper
11-11-2005, 01:41 PM
z999999@ubns99> echo `$ENV`
ksh: /export/home/z999999/.kshrc: cannot execute
z999999@ubns99> echo $ENV
/export/home/z999999/.kshrc
I've just taken this line from a library function and it's telling me it cannot execute
z999999@ubns99> echo `$ENV | $GREP "${i}=" | $AWK -F= '{print $2}'`
ksh: /export/home/z999999/.kshrc: cannot execute
ksh: -F=: not found
ksh: =: not found
and here is the old chestnut ;)
but it appears to be working in the function
I want to check the parameters of a function with this inside it [which will be environment variables] for values
can you tell my why please ?
tia
ksh: /export/home/z999999/.kshrc: cannot execute
z999999@ubns99> echo $ENV
/export/home/z999999/.kshrc
I've just taken this line from a library function and it's telling me it cannot execute
z999999@ubns99> echo `$ENV | $GREP "${i}=" | $AWK -F= '{print $2}'`
ksh: /export/home/z999999/.kshrc: cannot execute
ksh: -F=: not found
ksh: =: not found
and here is the old chestnut ;)
but it appears to be working in the function
I want to check the parameters of a function with this inside it [which will be environment variables] for values
can you tell my why please ?
tia