🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #930

Re: alias

#930
From: Robert Elz
Date: Wed, 02 Sep 1992 20:25
19 lines
791 bytes
In <1992Sep2.000915.16261@wdl.loral.com>
mdm@wdl1.wdl.loral.com (Mike D Marchionna) writes:

| function xdsp () { declare -x DISPLAY=$1:0.0 }

Try not using declare, as in

mulga$ g()
> {
> AAA=$1
> export AAA
> }
mulga$ g hello
mulga$ echo $AAA
hello

Whether the way "declare" works is a bug or not someone else can say.

kre
Technical Details
Message-ID: <9224706.24524@mulga.cs.mu.OZ.AU>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cs.mu.oz.AU!kre
References: <19390@ector.cs.purdue.edu>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.bash.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cs.mu.oz.AU!kre
From: kre@cs.mu.oz.AU (Robert Elz)
Subject: Re: alias
Message-ID: <9224706.24524@mulga.cs.mu.OZ.AU>
Keywords: alias
Sender: gnulists@ai.mit.edu
Organization: Computer Science, University of Melbourne, Australia
References: <19390@ector.cs.purdue.edu> 
Distribution: gnu
Date: Wed, 2 Sep 1992 20:25:46 GMT
Approved: bug-bash@prep.ai.mit.edu
Lines: 20