🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #434

Exoprted functions don't

#434
From: Kayvan Sylvan
Date: Sat, 05 Aug 1989 02:46
23 lines
969 bytes
If I define a function, setenv, as an exported function:

setenv() { export $1="$2" ; }
declare -x setenv

Then I examine the export list by typing export with no args, I see
setenv as follows:

declare -xf setenv() {
export $1="$2"
}

This is all fine. Now if I start another bash as a subshell, and use
setenv:

setenv: command not found

P.S. Bash is the greatest shell I have ever used!!!

			---Kayvan

Kayvan Sylvan @ Transact Software, Inc. -*-  Mountain View, CA (415) 961-6112
Internet: kayvan@Transact.COM -*- UUCP: ...!{apple,pyramid,mips}!mrspoc!kayvan
Technical Details
Message-ID: <KAYVAN.89Aug04193911@mrspoc.Transact.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!mrspoc.transact.com!kayvan

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!mrspoc.transact.com!kayvan
From: kayvan@mrspoc.transact.com (Kayvan Sylvan)
Newsgroups: gnu.bash.bug
Subject: Exoprted functions don't
Message-ID: <KAYVAN.89Aug04193911@mrspoc.Transact.COM>
Date: 5 Aug 89 02:46:24 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 23