Timeline for unable to print a positional parameter in a script
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 22, 2022 at 16:03 | comment | added | ilkkachu | and if they want to concatenate the args of the script to one arg for the inner sh -c command, they'd use $*. E.g. gnome-terminal -- /bin/sh -c 'echo "remember: $1"; exec bash' sh "$*" would allow running the script as remind.sh pick up the package without the quotes (as long as they don't use shell special characters in the message that would need quoting) | |
| May 22, 2022 at 13:20 | vote | accept | user598527 | ||
| May 22, 2022 at 11:59 | history | edited | Kamil Maciorowski | CC BY-SA 4.0 | added 431 characters in body |
| May 22, 2022 at 11:44 | history | edited | Kamil Maciorowski | CC BY-SA 4.0 | added 431 characters in body |
| May 22, 2022 at 11:33 | history | edited | Kamil Maciorowski | CC BY-SA 4.0 | added 431 characters in body |
| May 22, 2022 at 11:26 | history | edited | Kamil Maciorowski | CC BY-SA 4.0 | added 431 characters in body |
| May 22, 2022 at 11:21 | history | answered | Kamil Maciorowski | CC BY-SA 4.0 |