Why doesn't this work ?

R. L. Welsh rikki at macom1.UUCP
Fri Jun 16 22:06:16 AEST 1989


>From article <443 at fdmetd.uucp>, by jon at fdmetd.uucp (Jon Ivar Tr|stheim):
> Why does not the following command work in a Bourne shell script ?
> 	USERID=`expr "`id`" : 'uid=\([0-9]*\)(.*'`

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


Because ` will still work inside ".
-- 
	- Rikki	(UUCP: grebyn!macom1!rikki)



More information about the Comp.unix.questions mailing list