Timeline for Pass a string or array as arguments in bash
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 6, 2017 at 21:25 | comment | added | Jon Cohen | I control the source of the regexes, so that's not an issue in this case. choroba's answer was what I needed. | |
| Dec 6, 2017 at 21:25 | vote | accept | Jon Cohen | ||
| Dec 6, 2017 at 20:31 | comment | added | ilkkachu | Where do your regexes come from? A space-separated string like that seems fiddly if you ever happen to need regexes that contain spaces... | |
| Dec 6, 2017 at 20:24 | comment | added | ilkkachu |
@Jesse_b, only works if the regexes don't contain whitespace, and they'd get used as globs too (unless set -f), which isn't likely to be good since regexes often contain the very same characters that are special in globs...
|
|
| Dec 6, 2017 at 19:52 | answer | added | choroba | timeline score: 4 | |
| Dec 6, 2017 at 19:51 | review | First posts | |||
| Dec 6, 2017 at 21:01 | |||||
| Dec 6, 2017 at 19:50 | comment | added | jesse_b | I think this may be one of the cases where you should not quote your variable. | |
| Dec 6, 2017 at 19:49 | history | asked | Jon Cohen | CC BY-SA 3.0 |