bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Not operator (~) fail on arithmetic expansion.


From: Eduardo Bustamante
Subject: Re: Not operator (~) fail on arithmetic expansion.
Date: Sun, 27 Nov 2016 21:58:41 -0600

Except that this is *inside* arithmetic context. Bash is definitely
doing something wrong here:

dualbus@hp:~$ for sh in bash zsh ksh93 mksh dash posh; do $sh -c 'echo
$0 $((~0))' $sh; done
bash: /home/dualbus: syntax error: operand expected (error token is
"/home/dualbus")
zsh -1
ksh93 -1
mksh -1
dash -1
posh -1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]