Home > OS >  Under the bash command $((16 # FF)) can be performed, but under the sh an error?
Under the bash command $((16 # FF)) can be performed, but under the sh an error?

Time:09-27

In bash execute commands a=$((16 # FF)) no problem, but in use sh error: syntax error: 16 # FF,
Could you tell me how to change this command should be?

CodePudding user response:

$((16 # FF)) is only support bash syntax, sh
  • Related