From ee33101f63a273010b44e2b89a2a697aea664779 Mon Sep 17 00:00:00 2001 From: koalaman Date: Fri, 19 Jan 2018 18:39:07 -0800 Subject: [PATCH] Updated SC2142 (markdown) --- SC2142.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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