🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.rt
Article #1577

Re: AIX "csh" silently exits from csh scripts (a little long...)

#1577
From: Charlie Sauer
Date: Sat, 25 Feb 1989 15:44
64 lines
2954 bytes
In article <9440@bloom-beacon.MIT.EDU>, dyer@arktouros.MIT.EDU (Steve Dyer) writes:
> In article <9422@bloom-beacon.MIT.EDU> dyer@arktouros.mit.edu (Steve Dyer) writes:
> >Briefly, in attempting to port a large software product whose
> >installation scripts use the C-Shell, I'm finding that most of
> >them, when running under AIX, just exit without executing any commands.
> 
> Just a few more details: we're running AIX 2.2.1, and the problem can
> be better described as C-shell scripts invoked by their absolute
> pathname work fine, but single component names fail silently.
> 
> I.e., if the file /tmp/foo contains
> #!/bin/csh
> echo foo
> 
> and is mode 755, owner root, the following all fail:
> cd /tmp
> foo
> ./foo
> csh foo
> 
> but either of these succeed:
> 
> /tmp/foo
> csh /tmp/foo

Steve,

I missed your initial posting.  I see it is on emx, which provides my feed, so
I wonder how I don't have it.  In any case, I've tried your example on 2.2.1
with update 1721 applied and don't see the problem, i.e., I created your
example as described, ran it as both root and guest and all 10 times (2 id's,
5 invocations) produced "foo" as desired.  I don't know offhand if csh was
changed in any of the updates to 2.2.1 (my guess is that you got 1722 when 
you got 2.2.1, but I don't know, of course). sum -r on my csh gives

16773   197 /bin/csh

If you have a different binary, we can try to explore it from that point of
view, otherwise, I assume this is symptomatic of other problems.  I use a few
csh scripts daily, some invoked by absolute path, e.g., /u/bin/errmail:

#!/bin/csh
set month = `date +%m`
set day = `date +%d`
set year = `date +%y`

(errpt -s ${month}${day}0000${year} \
	|& grep -v Diskette \
	|& grep -v tty \
	|& grep -v SNA \
	|& grep -v Tokenring_DLC;\
(echo 'Device             Mounted on            total     free  used     ifree  used';\
	df| grep /dev/hd))\
|& mail -s `uname -n` root

invoked at 2359 by cron, and, of course, which.csh lifted from 4.3/RT, which is
just invoked as which, and have not observed any such problems.

Charlie
-- 
C.H. Sauer IBM Advanced Workstations Div. !'s: cs.utexas.edu!ibmaus!sauer
           11400 Burnet Road, D75/802     @'s: @CS.UTEXAS.EDU:sauer@ibmaus.uucp
           Austin, Texas 78758-2502       !&@: ibmaus!sauer@CS.UTEXAS.EDU
           (512) 823-3692                vnet: SAUER at AUSVM6
Technical Details
Message-ID: <1840@auschs.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!ut-emx!ibmchs!auschs!sauer
References: <9422@bloom-beacon.MIT.EDU> <9440@bloom-beacon.MIT.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!ut-emx!ibmchs!auschs!sauer
From: sauer@auschs.UUCP (Charlie Sauer)
Newsgroups: comp.sys.ibm.pc.rt
Subject: Re: AIX "csh" silently exits from csh scripts (a little long...)
Summary: seems to work OK for me.  standard questions about updates, etc.
Message-ID: <1840@auschs.UUCP>
Date: 25 Feb 89 15:44:39 GMT
References: <9422@bloom-beacon.MIT.EDU> <9440@bloom-beacon.MIT.EDU>
Organization: IBM AWD, Austin, TX
Lines: 64