tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ Shell script with a timeout...

How to find/install a binary? ▻

Last argument or pid???

In article <0a0133f8.a3406aad@usw-ex0101-007.remarq.com>,
Henry, Bob  <bob.henryNOboSPAM@usa.net.invalid> wrote:
>eval argument=\${$#}

In rc, you just say

    argument = $*($#*)

This syntax works for any variable.  For example, `$path($#path)' is the
last element of your path.

Tim.
--
Tim Goodwin   | "People think [ W. Gibson is ] hi-tech because his prose
Leicester, UK | is as pleasant to read as a C++ program." -- JT

Original headers:

From: tjg@star.le.ac.uk (Tim Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: Last argument or pid???
Date: 13 Oct 1999 13:35:22 +0100
Organization: University of Leicester, UK
Message-ID: <7u1ub0$7ri$1@ltpcg.star.le.ac.uk>
References: <37FCEAE3.4DCC69BF@us.ibm.com>
  <0a0133f8.a3406aad@usw-ex0101-007.remarq.com>

△ comp.unix.shell △

◅ Shell script with a timeout...

How to find/install a binary? ▻