bug-bash
[Top][All Lists]
Advanced

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

Re: ${@:0:n} includes one parameter too few


From: Chet Ramey
Subject: Re: ${@:0:n} includes one parameter too few
Date: Sat, 10 Oct 2009 00:13:26 -0400
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

neil@s-z.org wrote:

> Bash Version: 4.0
> Patch Level: 33
> Release Status: release
> 
> [apologies if this is a duplicate; the first copy may have been sent with
>  a bad From: address]
> 
> Description:
>       "${@:0:n}" should expand to $0 followed by n-1 positional parameters,
>       but actually expands to $0 followed by n-2 positional parameters,
>       for a total of only n-1 words.  This is different from ksh's
>       behaviour, and seems unintentional and inconsistent.

Thanks for the report.  This has already been fixed for bash-4.1.


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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