What is the difference between backticks and $() in a Bash script? [duplicate]

There isn’t any semantic difference. The backtick syntax is the older and less powerful version. See man bash, section “Command Substitution”.

If your shell supports the $() syntax, prefer it because it can be nested.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)