home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / bash / bug / 589 < prev    next >
Encoding:
Text File  |  1992-09-02  |  759 b   |  35 lines

  1. Newsgroups: gnu.bash.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!cs.mu.oz.AU!kre
  3. From: kre@cs.mu.oz.AU (Robert Elz)
  4. Subject: Re: alias
  5. Message-ID: <9224706.24524@mulga.cs.mu.OZ.AU>
  6. Keywords: alias
  7. Sender: gnulists@ai.mit.edu
  8. Organization: Computer Science, University of Melbourne, Australia
  9. References: <19390@ector.cs.purdue.edu> 
  10. Distribution: gnu
  11. Date: Wed, 2 Sep 1992 20:25:46 GMT
  12. Approved: bug-bash@prep.ai.mit.edu
  13. Lines: 20
  14.  
  15. In <1992Sep2.000915.16261@wdl.loral.com>
  16. mdm@wdl1.wdl.loral.com (Mike D Marchionna) writes:
  17.  
  18. | function xdsp () { declare -x DISPLAY=$1:0.0 }
  19.  
  20. Try not using declare, as in
  21.  
  22. mulga$ g()
  23. > {
  24. > AAA=$1
  25. > export AAA
  26. > }
  27. mulga$ g hello
  28. mulga$ echo $AAA
  29. hello
  30.  
  31. Whether the way "declare" works is a bug or not someone else can say.
  32.  
  33. kre
  34.  
  35.