🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Lee Kolakowski Sun, 16 Jul 1989 01:00
Bash Bug in parsing/job control
#331
Author: Lee Kolakowski
Date: Sun, 16 Jul 1989 01:00
39 lines
1570 bytes
This is bash 1.02 on a Sun3/140 compiled with cc from Sun, in Sunos 4.0

$ make & ; ls
syntax error near `;'

Why????

This is legal in sh and csh.

Also, I was having problems with messages from the shell showing up
in my RMAIL file inside emacs. I put export mailpath="" in my ~/.bashrc
and those problems went way, seems to be a bash/emacs weirdism.

Also

why if on the command line I define a variable

$ TEST_VAR=junk

does it show up in the environment without explicitly being exported?


BTW, a great shell, even if it does have small probs.


--

Frank Kolakowski 

=====================================================================
|lfk@mbio.med.upenn.edu                 ||      Lee F. Kolakowski   |
|kolakowski@mscf.med.upenn.             ||	Univ. of Penna.     |
|c/o jes@eniac.seas.upenn.edu		||	Dept of Chemistry   |
|kolakowski@c.chem.upenn.edu		||	231 South 34th St.  |
|bcooperman.kolakowski@bionet-20.arpa	||	Phila, PA 19104     |
|AT&T:	1-215-898-2927			||--------------------------|
|#include <litigate.h>			||      One-Liner Here!     |
=====================================================================
Re: Bash Bug in parsing/job control
#354
Author: Chet Ramey
Date: Wed, 19 Jul 1989 18:43
34 lines
1494 bytes
Lee Kolakowski writes:

>This is bash 1.02 on a Sun3/140 compiled with cc from Sun, in Sunos 4.0

>$ make & ; ls
>syntax error near `;'
>
>Why????

Because it is not allowed by the grammar in parse.y.  I don't know where the
grammar came from; it might have been a result of the POSIX 1003.2 work 
(remember, bash is an implementation of the POSIX shell spec).

>$ TEST_VAR=junk
>
>does it show up in the environment without explicitly being exported?

This is bash 1.02 running on an IBM-RT running 4.3 BSD (the same behavior 
is observed on a Vax running Ultrix 3.0 and a Sun running SunOS 3.5):

cwns5$ TEST=dhdh
cwns5$ echo $TEST
dhdh
cwns5$ printenv | grep TEST
cwns5$ 

This doesn't look like it shows up in the environment to me...

Chet Ramey

Chet Ramey			"We are preparing to think about contemplating 
Network Services Group, CWRU	 preliminary work on plans to develop a
chet@cwjcc.INS.CWRU.Edu		 schedule for producing the 10th Edition of 
				 the Unix Programmers Manual." -- Andrew Hume
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