🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Kayvan Sylvan Sat, 05 Aug 1989 02:46
Exoprted functions don't
#434
Author: 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
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