home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!ddsw1!dattier
- From: dattier@ddsw1.mcs.com (DWT)
- Newsgroups: comp.unix.shell
- Subject: Re: Variable substitution using Korn sh
- Message-ID: <BxD8Bn.59t@ddsw1.mcs.com>
- Date: 7 Nov 92 21:42:58 GMT
- References: <140617@lll-winken.LLNL.GOV> <28300008@tisdec.tis.tandy.com>
- Organization: Contributor Account at ddsw1, Chicago, Illinois 60657
- Lines: 13
-
- kevinl@tisdec.tis.tandy.com wrote in <28300008@tisdec.tis.tandy.com>:
-
- | dirnam=$(eval echo $"$variable")
-
- As harmless as the echo is, it being built into the Korn shell,
-
- eval dirnam=\$$variable
-
- looks cleaner in my opinion. If $variable contains a legal variable name
- (whose value in turn should be assigned to dirnam) it won't need any quoting.
-
- David W. Tamkin Box 59297 Northtown Station, Illinois 60659-0297
- dattier@ddsw1.mcs.com CompuServe: 73720,1570 MCI Mail: 426-1818
-