home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!odin!chet
- From: chet@odin.ins.cwru.edu (Chet Ramey)
- Newsgroups: comp.unix.shell
- Subject: Re: zsh function/positional parameter question...
- Date: 14 Sep 1992 14:18:27 GMT
- Organization: Case Western Reserve University, Cleveland, OH (USA)
- Lines: 20
- Distribution: usa
- Message-ID: <1926vjINNbf3@usenet.INS.CWRU.Edu>
- References: <1992Sep13.022329.21461@beaver.cs.washington.edu>
- NNTP-Posting-Host: odin.ins.cwru.edu
-
- In article <1992Sep13.022329.21461@beaver.cs.washington.edu> maupin@cs.washington.edu (Ken Maupin) writes:
- >following does not work...
- >
- > function var () { echo $$1 }
-
- Use
-
- var()
- {
- eval echo \$$1
- }
-
- This works in bash, at least.
-
- Chet
- --
- ``The use of history as therapy means the corruption of history as history.''
- -- Arthur Schlesinger
-
- Chet Ramey, Case Western Reserve University Internet: chet@po.CWRU.Edu
-