Why doesn't this work ?

Jon Ivar Tr|stheim jon at fdmetd.uucp
Wed Jun 14 20:19:37 AEST 1989


Why does not the following command work in a Bourne shell script ?

	USERID=`expr "`id`" : 'uid=\([0-9]*\)(.*'`

The shell does not feed the whole argument list to 'expr(1)', so I get
the following error message:

	sh:   : 'uid=\([0-9]*\)(.*': execute permission denied

-- 
Jon Tr|stheim, Fellesdata a.s, P.O. Box 248, 0212 OSLO 2, NORWAY
Phone : +47 2 52 80 80                            Fax   : +47 2 52 85 10
E-mail : ...!mcvax!ndosl!fdmetd!jon  or           jon at fdmetd.uucp
<The opinions expressed, if any, do not represent Fellesdata a.s>



More information about the Comp.unix.questions mailing list