On 19/01/2009, David Korn <dgk at research.att.com> wrote: > cc: don.cragun at sun.com ksh93-integration-discuss at opensolaris.org > pkchris at users.sourceforge.ne > Subject: Re: Re: [shell-discuss] [ksh93-integration-discuss] CR 6791838 > Created P3 shell/korn93 *ksh93* unset of a variablewhich is not set should > return 0 > -------- > > > > > Yes, and we have another syntax which is hard to memorize. > > Why can't we use [[ -v x ]] to test whether x is a variable, [[ -N x > > ]] to test whether x is a nameref and [[ -F x ]] to test whether x is > > a function? > > > > > > I could detect that x is followed by a + and just > > > check for not set. > > > > > How does this help with functions and name references? > > > > > Jenny > > -- > > Jennifer Pioch, Uni Frankfurt > > > > > > > > -N is already used. > True if file exists and has been modified since it was last read. > > There is no need for -F since you can use > typeset -f x > > to test whether x is a function. > > > I will [[ -v x ]] and [[ -R x ]] to test whether x is a variable > or whether it is a name reference. > > > David Korn > dgk at research.att.com
When will the new version be available? -- Cedric Blancher <cedric.blancher at googlemail.com> Institute Pasteur