Re: [PATCH] efficient [[ -v 1 ]] [was: Should [[ -v 1 ]] be supported?]

2020-01-18 Thread Chet Ramey
On 1/18/20 2:48 PM, Martijn Dekker wrote: > Op 29-12-18 om 01:19 schreef Chet Ramey: >> On 12/27/18 3:11 PM, Martijn Dekker wrote: >> >>> Consistency might be a better argument. If [[ -v foo ]] is equivalent to [[ >>> -n ${foo+s} ]] for variables (with the advantage that you don't need 'eval' >>> t

Re: Tiny documentation typo

2020-01-18 Thread Chet Ramey
On 1/17/20 5:47 PM, Andy Goth wrote: > I spotted a tiny typo in the documentation for bash-5.0.11, figured I'd > submit a patch while I was thinking about it.  I mean, that's how stuff > gets fixed, right?  Here goes: > > --- ../bash-5.0/doc/bash.1    2019-01-02 08:14:30.0 -0600 > +++ ./do

[PATCH] efficient [[ -v 1 ]] [was: Should [[ -v 1 ]] be supported?]

2020-01-18 Thread Martijn Dekker
Op 29-12-18 om 01:19 schreef Chet Ramey: On 12/27/18 3:11 PM, Martijn Dekker wrote: Consistency might be a better argument. If [[ -v foo ]] is equivalent to [[ -n ${foo+s} ]] for variables (with the advantage that you don't need 'eval' to handle arbitrary values of 'foo'), then perhaps it's not