Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14991
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: Should [[ -v 1 ]] be supported? |
| Date | 2018-12-28 18:20 -0600 |
| Organization | ITS, Case Western Reserve University |
| Message-ID | <mailman.6484.1546043008.1284.bug-bash@gnu.org> (permalink) |
| References | (1 earlier) <5dac2cf2-2fac-0fd1-058f-6a84a3271738@case.edu> <abd86dbc-f6e2-62bd-e9dc-f959e2dbff9f@inlv.org> <CABrM6wkGwVbPdrXTetVsFCiwDPg5JnK4KRh49WqACsKhrrMMdA@mail.gmail.com> <e190ca7a-57a7-5cf5-8001-48806fa98caf@inlv.org> <CABrM6wmgN7+03dvLySy0D=R1PnKwN6-9pM-8mD7VNy8P6u1NLw@mail.gmail.com> |
On 12/27/18 7:24 PM, Peng Yu wrote: >> I don't believe that at all. The number of positional parameters is kept >> anyway. It's not recalculated when you compare it to another number, so >> it's just as fast as a simple comparison of two integers. > > Getting the number $# is slow. You haven't presented any evidence to support this, nor any basis for comparison. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: Should [[ -v 1 ]] be supported? Chet Ramey <chet.ramey@case.edu> - 2018-12-28 18:20 -0600
csiph-web