bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: asking for a better way to implement this


From: Dennis Williamson
Subject: Re: asking for a better way to implement this
Date: Sun, 26 Sep 2010 17:01:45 -0500

On Sun, Sep 26, 2010 at 3:42 PM, Christopher Roy Bratusek
<zanghar@freenet.de> wrote:
> btw. How can I remove the last arguement ${!#} ?
>
> I tried args=${@:-${!#}} but that won't work.
>
> Chris
>
>
>

That says substitute the last argument if there are no arguments
(pretty much impossible).

Try this:

args=${@:1:${#}-1}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]