This has been bugging me for some time:
How do I get $iif() to evaluate two commands for a condition (T/F) w/o having to use a seperate alias.
So far I have tried the following to no avail:
$iif($true,{echo -a hi | echo -a hi2u},noop)
$iif($true,[ echo -a hi | echo -a hi2u ],noop)
$iif($true, [ echo -a true $chr(124) echo -a true2 ] ,noop)
$iif($true,( echo -a hi | echo -a hi2u ),noop)
$eval($iif($true,echo -a hi $chr(124) echo -a hi2u,noop),2)
$eval($iif($true,echo -a hi $chr(124) echo -a hi2u,noop))
$iif($true,$eval(echo -a true [ $chr(124) ] echo -a true2),false)
$iif($true,$eval(echo -a true $chr(124) echo -a true2),false)
$eval($decode($iif($true,ZWNobyAtYSBoaSB8IGVjaG8gLWEgaGkydQ==,noop),m))
$decode($iif($true,ZWNobyAtYSBoaSB8IGVjaG8gLWEgaGkydQ==,noop),m)
$eval($iif($true,$decode(ZWNobyAtYSBoaSB8IGVjaG8gLWEgaGkydQ==,m),noop))
If anyone can figure it out, I'd appreciate it. I have a mess of lame aliases for multi-command instances atm, and I'd like to get rid of them.
Last edited by Midori; 07/03/07 02:30 AM.