🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.shell
1 messages
1 total messages Started by Joe Wasik Wed, 28 Nov 1990 00:00
BOURNE SHMOURNE...
#1852
Author: Joe Wasik
Date: Wed, 28 Nov 1990 00:00
23 lines
1304 bytes
Who would have thought that the Bourne could still be introducing problems,
but I think we've just discovered one.

The following script-excerpt displays $1 (from the command line), then resets
all $n parameters (with --), it should assign the value "a" to $1, then
display the "a".

echo $1
set -- a 
echo $1

When executed from the command line, it works.  When executed from a program
with system() while not passing it any aruments, it works.  Now give the same
script an argument, call it with system(),...  and it fails.  The second echo
still prints the command line argument, not the asigned "a".

We run Unix Sys V 3.1.1 on an AT&T 3B15.  This is not so much a question
as it is a "watch out."

-- 
Joe Wasik - PacBell, 2600 Camino Ramon, 4e750, San Ramon, CA 94583  415-823-2422
jcwasik@clib.pacbell.com or {att,bellcore,sun,ames,pyramid}!pacbell!clib!jcwasik
nbr_countries--; iraq += kuwait; price_oil *= 2; us_public = screwed;
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads