From 4151126354a608a074ddec646e3de6b69d96bfb1 Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sat, 27 Apr 2019 15:58:14 -0700 Subject: [PATCH] Updated SC2089 (markdown) --- SC2089.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SC2089.md b/SC2089.md index 0ce32b0..fd9ebe1 100644 --- a/SC2089.md +++ b/SC2089.md @@ -14,6 +14,13 @@ args=(-lh "My File.txt") ls "${args[@]}" ``` +or in POSIX overwriting `"$@"`: + +```sh +set -- -lh "My File.txt" +ls "$@" +``` + ### Rationale: Bash does not interpret data as code. Consider almost any other languages, such as Python: