Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!wuarchive!hsdndev!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.unix.questions Subject: Re: $argv[$#argv] Message-ID: <16278@smoke.brl.mil> Date: 27 May 91 03:06:01 GMT References: <1991May25.204543.6428@midway.uchicago.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 10 In article <1991May25.204543.6428@midway.uchicago.edu> goer@ellis.uchicago.edu (Richard L. Goerwitz) writes: >It's not obvious to me how to take the value of the last argv >element with /bin/sh, the way one can do with the C-Shell using >subscripts. Perhaps an ignorant question, but how do? It's somewhat context sensitive, but here's one example: $ set -- a b c $ echo `eval echo $"$#"` c $