diff --git a/SC2142.md b/SC2142.md index f37e8c2..9d9e802 100644 --- a/SC2142.md +++ b/SC2142.md @@ -19,4 +19,9 @@ Aliases just substitute the start of a command with something else. They therefo ### Exceptions -If your alias ends up quoting the value, e.g. `alias cut_first="awk '{print \$1}'"`, you can technically [[ignore]] this error. However, you should consider turning this alias into a more readable function instead: `cut_first() { awk '{print $1}' "$@"; }` \ No newline at end of file +If your alias ends up quoting the value, e.g. `alias cut_first="awk '{print \$1}'"`, you can technically [[ignore]] this error. However, you should consider turning this alias into a more readable function instead: `cut_first() { awk '{print $1}' "$@"; }` + +### Related resources: + +* [BashFaq: How can I make an alias that takes an argument?](https://mywiki.wooledge.org/BashFAQ/080) +* [StackOverflow: Make a Bash alias that takes a parameter?](https://stackoverflow.com/questions/7131670/make-a-bash-alias-that-takes-a-parameter) \ No newline at end of file