🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cu.decstation.managers
Article #175

[SUMMARY] sh problem

#175
From: Stanislaw Grygiel
Date: Thu, 18 Jun 1998 00:00
79 lines
2260 bytes

Original message:

> 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?

The problem was missing hard link to file test in /bin.
I did:

cd /bin
ln test \[

and everyhting works fine now.

Thanks A LOT for those who replied:

Hans.Ranke@ei.tum.de 
olle@cb.uu.se 
furukawa@almond0.kek.jp 
kjell.andresen@usit.uio.no 
mcrowley@mtholyoke.edu 
alan@nabeth.cxo.dec.com 
drjohn@pizero.Colorado.EDU 
awagliar@echo.apo.saic.com 
billp@solsticeinc.net 
Technical Details
Message-ID: <898234640.2899@news.Colorado.EDU>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1065d6,2a00e0f3c9656794,start
X-Google-Attributes: gid1065d6,public
From: Stanislaw Grygiel <stach@ee.pdx.edu>
Subject: [SUMMARY] sh problem
Date: 1998/06/18
Message-ID: <898234640.2899@news.Colorado.EDU>
X-Deja-AN: 364097360
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   <199806190536.WAA27177@jetsam.ee.pdx.edu>
Organization: University of Colorado at Boulder
Newsgroups: cu.decstation.managers