Article View: comp.sys.atari.st
Article #29450Re: Beckmeyer C-shell bug (was: Source for a system() routine needed)
From: David Beckemeyer
Date: Thu, 03 Dec 1987 08:35
Date: Thu, 03 Dec 1987 08:35
54 lines
2472 bytes
2472 bytes
Newsgroups: comp.sys.atari.st
Subject: Re: Beckmeyer C-shell bug (was: Source for a system() routine needed)
Summary:
Expires:
References: <13021@felix.UUCP> <1845@chinet.UUCP> <13782@felix.UUCP>
Sender:
Reply-To: db@hoptoad.UUCP (David Beckemeyer)
Followup-To:
Distribution:
Organization: Nebula Consultants in San Francisco
Keywords:
In article <13782@felix.UUCP> preston@felix.UUCP (Preston Bannister) writes:
>In article <1845@chinet.UUCP> dag@chinet.UUCP (Daniel A. Glasser) writes:
>
>On further investigation, you're right...sort of. The problem, as it
>turns out, is that the Beckmeyer C-shell does not handle very long
>single arguments.
>
>The MWC system() passes through the string given to it as a single
>argument. I.e. the call:
>
> system("foo bar baz");
>
>Becomes a call to the default shell with the following MWC extended
>argument list appended to the environment (assume the SHELL environment
>variable is set to 'shell.prg', the iovector is approximate):
>
> ARGV=CCCA??????????????????
> shell.prg
> -c
> foo bar baz
>
>Note that the string passed to the system() call is passed through as
>a single argument.
>
>I had the SHELL environment variable set to 'csh.prg', the Beckmeyer
>C-shell. When csh was given a single argument longer than 127
>characters, it truncates the argument.
>
>The shell supplied with MWC (msh) can handle single arguments that are
>longer than 127 characters.
Thanks for brining this to my attention. I was not aware that
Micro C-Shell did not handle individual arguments longer than
127 chars. I'll look it, and if after further investigation I find
that this is indeed the case, I will fix it.
David Beckemeyer
Beckemeyer Development Tools
...ihnp4!hoptoad!bdt!david
Technical Details
Message-ID:
<3452@hoptoad.uucp>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!hao!ames!ucbcad!ucbvax!hoptoad!dbReferences:
<13021@felix.UUCP> <1845@chinet.UUCP> <13782@felix.UUCP> <1987Nov25.224849.6975@jarvis.csri.toronto.edu>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!hao!ames!ucbcad!ucbvax!hoptoad!db From: db@hoptoad.uucp (David Beckemeyer) Newsgroups: comp.sys.atari.st Subject: Re: Beckmeyer C-shell bug (was: Source for a system() routine needed) Message-ID: <3452@hoptoad.uucp> Date: Thu, 3-Dec-87 03:35:38 EST Article-I.D.: hoptoad.3452 Posted: Thu Dec 3 03:35:38 1987 Date-Received: Sun, 6-Dec-87 23:52:11 EST References: <13021@felix.UUCP> <1845@chinet.UUCP> <13782@felix.UUCP> <1987Nov25.224849.6975@jarvis.csri.toronto.edu> Reply-To: db@hoptoad.UUCP (David Beckemeyer) Organization: Nebula Consultants in San Francisco Lines: 53