[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature request: allow shif [n] with n > $#
From: |
Robert Elz |
Subject: |
Re: feature request: allow shif [n] with n > $# |
Date: |
Sat, 13 Apr 2019 08:43:00 +0700 |
Date: Thu, 11 Apr 2019 19:05:56 -0400
From: Chet Ramey <chet.ramey@case.edu>
Message-ID: <6973cbca-28bd-5a20-4966-1d8251e956ae@case.edu>
| If you want to be sure to shift out all existing parameters, use
| `shift $#'. If you want something else, you can add logic to cap the
| argument passed to `shift' at $#.
I agree.
Except "set --" is less work all around than "shift $#"
In general:
[ "$ARG" -lt "$#" ] && shift "$ARG" || set --
kre
- feature request: allow shif [n] with n > $#, Toralf Förster, 2019/04/11
- Re: feature request: allow shif [n] with n > $#, Chet Ramey, 2019/04/11
- Re: feature request: allow shif [n] with n > $#,
Robert Elz <=
- Re: feature request: allow shif [n] with n > $#, konsolebox, 2019/04/12
- Re: feature request: allow shif [n] with n > $#, Toralf Förster, 2019/04/13
- Re: feature request: allow shif [n] with n > $#, Toralf Förster, 2019/04/13
- Re: feature request: allow shif [n] with n > $#, Greg Wooledge, 2019/04/15
- Re: feature request: allow shif [n] with n > $#, Greg Wooledge, 2019/04/15
- Re: feature request: allow shif [n] with n > $#, Robert Elz, 2019/04/15