On Mon, Feb 10, 2025 at 2:43 PM Lawrence Velázquez <v...@larryv.me> wrote: > > This accepts many valid expressions, not just literals. > > phi() { > (($1)) || (($1==0)) > }
phi 'i[$( date >&2 )]' Whoopsie-daisy. https://mywiki.wooledge.org/BashPitfalls#read_num.3B_echo_.24.28.28num.2B-1.29.29