🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #811

This is Mail to Brian Fox

#811
From: Don Christensen
Date: Wed, 06 Dec 1989 16:33
42 lines
1966 bytes
I am posting this to Brian Fox since I can't seem to reach him via mail.
I have tried a couple of different mail addresses with no luck.
(The aurel.cns.caltech.edu address is the address that was embedded
in the mail that I got from you, Brian.)

Brian,  this is what I get when I try to mail to you.
 
    From: daver!mips!aurel.cns.caltech.edu!MAILER-DAEMON (Mail Delivery Subsys)
    Subject: Returned mail: Host unknown
    
       ----- Transcript of session follows -----
    421 Host sbphy.ucsb.edu not found for mailer tcpld.
    550 bfox@sbphy.ucsb.edu... Host unknown
    
       ----- Unsent message follows -----
    Received: from csvax.caltech.edu by aurel.cns.caltech.edu (4.0/1.34)
	    id AA06492; Tue, 5 Dec 89 23:48:05 PST
    Received: by csvax.caltech.edu (5.59/1.2)
	    id AA25884; Tue, 5 Dec 89 23:43:40 PST
    ...
    

Anyway, the problem I found has apparently been fixed and diffs have been sent
to you by Chet Ramey.  Greg Onufer discovered that the actual problem
was in the way bash dealt with variables such as ${1}.  The script that
failed had the following in it:

exec /bin/expr "/${1:-.}" ......

It appears that $1 is not being expanded (is null), so a "." is returned.
If you need anything else, let me know.

Thanks for all the hard work you have done.  1.04 works marvelously on
Interactive's 386ix.

Keep up the good work!
        Don
-- 
Don Christensen                | UUCP:       ...{sun}!daver!kesa!djc 
Kesa Corporation               | Internet:   djc@kesa.UUCP
Santa Clara, CA (209) 944-7068 | Home Phone: (415) 966-1842
Technical Details
Message-ID: <181@kesa.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!apple!vsi1!daver!kesa!djc

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!apple!vsi1!daver!kesa!djc
From: djc@kesa.UUCP (Don Christensen)
Newsgroups: gnu.bash.bug
Subject: This is Mail to Brian Fox
Message-ID: <181@kesa.UUCP>
Date: 6 Dec 89 16:33:29 GMT
Organization: Kesa Corporation, Santa Clara
Lines: 42