Not sure if this is a possible bug or known bug or intended behavior, or maybe i am misunderstanding it completely? But concider this simple exameple

alias test {
if ($2) { something }
}

Using both /test and $test methods with the provided values of $1 and $2 bleh and 0 respectively, this will fail to do 'something' because it thinks $2 does not exist when infact it does and the value is just 0.

I guess understandably, and intentionally, if the provided value of $n is $null or $false then such an if fails, but in the case of the value of $n being 0 this should not occur

Hmm, i suppose this isn't anything new when i think about it, in much the same way $(bleh,) will treat the non existance of $2 as $(bleh,0) instead of ignoring the parimatre and treating is as $(bleh)


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby