Timeline for Using shell variables for command options
Current License: CC BY-SA 4.0
18 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 15, 2023 at 8:40 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 261 characters in body
|
| S Oct 10, 2022 at 6:57 | history | suggested | Riveascore | CC BY-SA 4.0 |
"no matter whether" => "whether"
|
| Oct 6, 2022 at 12:01 | review | Suggested edits | |||
| S Oct 10, 2022 at 6:57 | |||||
| Jul 29, 2021 at 20:13 | comment | added | Kusalananda♦ | @JoshM. See e.g. Unexpected quotes in zsh trace and Why does bash add single quotes to unquoted failed pathname expansions in a command before executing it? and command substitution - cat file inserts quotes and bash - Single quotes being added to double quotes | |
| Jul 29, 2021 at 20:11 | comment | added | Kusalananda♦ |
@JoshM. You are most likely looking ath the output from the shell running with set -x (or set -o xtrace) active. The format of this trace/debugging output can't be changed. Don't pay too much attention to it, it's just for debugging and the commands outputted in this way can't generally be used for input into the shell.
|
|
| Jul 29, 2021 at 17:42 | comment | added | Josh M. |
Using your example, when I run rsync "${rsync_options[@]}" source/ target, it is being output as rsync '-rnv' '--exclude=*' source/ target... how to get rid of the single quotes around each argument? It works this way, in my case, but is ugly.
|
|
| Nov 19, 2019 at 11:54 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 66 characters in body
|
| Oct 25, 2019 at 10:29 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 25 characters in body
|
| Aug 3, 2018 at 11:31 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 13 characters in body
|
| Jul 31, 2018 at 7:56 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 173 characters in body
|
| Jul 31, 2018 at 6:27 | vote | accept | Florian Brucker | ||
| Jul 30, 2018 at 15:28 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
added 143 characters in body
|
| Jul 30, 2018 at 14:33 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 124 characters in body
|
| Jul 30, 2018 at 14:11 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 126 characters in body
|
| Jul 30, 2018 at 14:05 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 157 characters in body
|
| Jul 30, 2018 at 13:58 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 111 characters in body
|
| Jul 30, 2018 at 13:57 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
edited body
|
| Jul 30, 2018 at 13:55 | history | answered | Kusalananda♦ | CC BY-SA 4.0 |