🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #1137

bash 1.05.2 sourceing bug

#1137
From: Drazen Borkovic
Date: Sat, 13 Jan 1990 02:19
28 lines
817 bytes
This is bash ver 1.05.2 on Sparcstation 1, SUNOS 4.0.3.

Compiled with sun cc.


When sourceing a file, bash doesn't set a variable.

SCRIPT:

!91 @ echo $BASH_VERSION
1.05.2
!92 @ echo $HOSTTYPE
SUN4
!93 @ cat ./J1
declare -rx a5=5
!94 @ unset a5
!95 @ echo $a5
a5: unbound variable
!96 @ echo $-
umo
!97 @ . ./J1
!98 @ echo $a5
a5: unbound variable
!99 @ set | egrep a5
!100 @

ENDSCRIPT
Technical Details
Message-ID: <9001130219.AA14948@vlsi.caltech.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!VLSI.CALTECH.EDU!drazen

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!VLSI.CALTECH.EDU!drazen
From: drazen@VLSI.CALTECH.EDU (Drazen Borkovic)
Newsgroups: gnu.bash.bug
Subject: bash 1.05.2 sourceing bug
Message-ID: <9001130219.AA14948@vlsi.caltech.edu>
Date: 13 Jan 90 02:19:58 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 28