Timeline for Passing named arguments to shell scripts
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 22, 2022 at 13:22 | comment | added | Josh M. |
Should also shift within the if since you've consumed 2 args, right?
|
|
| Jul 24, 2022 at 13:18 | comment | added | mirekphd |
NB shift removes the 1st argument from the start of the args list
|
|
| Sep 24, 2018 at 9:45 | comment | added | hol |
I like this solution in KSH88 I had to v=``echo ${1} | awk '{print substr($1,3)}'`` typeset $v="$2" (Remove one backtick each side)
|
|
| Aug 24, 2017 at 4:53 | review | Late answers | |||
| Aug 24, 2017 at 5:35 | |||||
| Aug 24, 2017 at 4:39 | review | First posts | |||
| Aug 24, 2017 at 4:54 | |||||
| Aug 24, 2017 at 4:38 | history | answered | Shahzad Malik | CC BY-SA 3.0 |