Reputation: 7760
e.g.
a=0 a=$((a+1)) # But I want to $((a++)) # This report 1 is not a command
How can I run this expression only ?
Upvotes: 0
Views: 37
Reputation: 34964
Just remove the $:
$
a=0 ((a++))
Upvotes: 4