🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs
Article #49

Re: Nasty shell bug

#49
From: utzoodecvaxharponpoivalicerabbit...
Date: Fri, 22 Oct 1982 19:57
11 lines
909 bytes
I do not know what the situation is for csh, but what you describe
is in fact the proper operation of the Bourne Shell.  Suppose you type
the following string at your terminal:  "echo a b c " (note the trailing
space).  The echo command gets three arguments: "a", "b", and "c", with
no trailing white space.  Thus, if you say "echo $PS1" and PS1 contains
"$ ", it is as if you had said "echo $ ": the echo command gets a $ as
its argument with no trailing space.  The way to do it is to say:

		echo "$PS1"

I have tried this and the output does indeed have the trailing space.
Technical Details
Message-ID: <bnews.rabbit.831>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: cca.3228

Show Full Headers
Complete Article Headers
From: utzoo!decvax!harpo!npoiv!alice!rabbit!ark
Newsgroups: net.bugs
Title: Re: Nasty shell bug
Article-I.D.: rabbit.831
Posted: Fri Oct 22 19:57:04 1982
Received: Sat Oct 23 02:51:04 1982
References: cca.3228
Subject: Re: Nasty shell bug
Date: Fri, 22 Oct 1982 19:57:04 +0000
Message-ID: <bnews.rabbit.831>