Article View: cu.decstation.managers
Article #174sh problem
From: Stanislaw Grygiel
Date: Thu, 18 Jun 1998 00:00
Date: Thu, 18 Jun 1998 00:00
60 lines
1741 bytes
1741 bytes
Hi,
I have two DS3100 and on one of them shell scripts don't execute correctly.
Here it is:
#1
Script started on Wed Jun 17 22:51:09 1998
201 stach % cat q
#!/bin/sh
[ -f TODO_Z ] && {
echo OK
}
202 stach % q
OK
203 stach % exit
204 stach %
script done on Wed Jun 17 22:51:20 1998
#2
Script started on Wed Jun 17 22:49:15 1998
sh: [: not found
sh: [: not found
sh: [: not found
sh: [: not found
sh: [: not found
sh: [: not found
sh: [: not found
sh: [: not found
sh: [: not found
sh: [: not found
sh: [: not found
sh: [: not found
sh: [: not found
sh: [: not found
sh: [: not found
sh: [: not found
sh: [: not found
sh: [: not found
201 stach % cat q
#!/bin/sh
[ -f TODO_Z ] && {
echo OK
}
202 stach % q
sh: [: not found
203 stach % exit
204 stach %
script done on Wed Jun 17 22:49:43 1998
The text file TODO_Z exist and is not empty.
On machine #1 everything is fine. On machine #2 something is obviously
wrong with executing conditionals. /bin/sh is OK however, because I observed
the same thing with a copy of sh taken from machine #1.
What is wrong here?
Stan
Technical Details
Message-ID:
<898151741.16362@news.Colorado.EDU>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1065d6,430a3b770657b67c,start X-Google-Attributes: gid1065d6,public From: Stanislaw Grygiel <stach@ee.pdx.edu> Subject: sh problem Date: 1998/06/18 Message-ID: <898151741.16362@news.Colorado.EDU> X-Deja-AN: 363774306 Sender: daemon@lace.colorado.edu Delivered-To: decstation-managers@sws1.ctd.ornl.gov Followup-To: poster Distribution: cu X-Note1: message-id generated by recnews X-Note2: mail msgid was <199806180635.XAA21621@jetsam.ee.pdx.edu> Organization: University of Colorado at Boulder Newsgroups: cu.decstation.managers