mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Add lint for backticks in shell scripts
The "$(some_command arg1 arg2)" form is preferred to the `some_command arg1 arg2` form because it nests unambiguously. Add a lint for this to tidy.
This commit is contained in:
parent
4bc629b369
commit
79ef9b4efc
5 changed files with 24 additions and 14 deletions
|
@ -4,4 +4,6 @@
|
|||
|
||||
set -o nounset
|
||||
|
||||
# Talking about some `concept in backticks` # shouldn't trigger
|
||||
echo "hello world"
|
||||
some_var=`echo "command substitution"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue