NOAA-EMC / RTOFS_GLO

0 stars 1 forks source link

Command substitution: replace backticks with $(command) #36

Open DanIredell-NOAA opened 1 year ago

DanIredell-NOAA commented 1 year ago

Use $(command) instead `command`

It is POSIX-compliant and is more readable (especially when nesting or when using \ to escape characters)

See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_03 http://mywiki.wooledge.org/BashFAQ/082