Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!cs.utexas.edu!uunet!mcvax!ndosl!fdmetd!jon From: jon@fdmetd.uucp (Jon Ivar Tr|stheim) Newsgroups: comp.unix.questions,nuug.general Subject: Why doesn't this work ? Keywords: /bin/sh Message-ID: <443@fdmetd.uucp> Date: 14 Jun 89 10:19:37 GMT Followup-To: comp.unix.questions Organization: Fellesdata a.s, Oslo, Norway Lines: 14 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@fdmetd.uucp