/alias tt if ( a != b && c != d ) echo -a $ifmatch
/tt
return 'a'
/alias tt if ( a != b && c != d ) { echo -a $ifmatch }
return 'c'
Why? v6.32
hmm.. interesting find, and since the two codes are almost identical, the difference being the extra braces, to my thinking they both should've returned the same thing.
This might be better located in the bug reports section, as that's what it looks like to me.
Hm you are right it can be a bug
I tried the first thing that came to mind and also found that...
/alias tt if (a != b) && (c != d ) echo -a $ifmatch
Also returns c .
Very interesting find.
Btw, Im still running 6.3 so this isnt specific to 6.32
When formatted correctly, it returned c for me also in 6.32.
tt if a != b && c != d { echo -a $ifmatch }
return 'c'
tt if a != b && c != d echo -a $ifmatch
return 'a'
I think is only occur when an alias use "too few" brackets.
Exist a method to get the first $ifmatch/$v1 of different comparison?