Timeline for How to allow only certain characters in a bash variable
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 17, 2019 at 15:02 | comment | added | Stéphane Chazelas | @leetbacoon, while those quotes wouldn't harm, they are nor necessary, as it's not a list context (so split+glob won't apply) and it's not a context where a pattern is expected (it would be a different matter in case x in ("$URL")... | |
| Feb 10, 2019 at 22:45 | comment | added | leetbacoon | Works nicely. Now, regarding the $URL in case $URL in, shouldn't it be wrapped in quotes, i.e. case "${URL}" in? | |
| Feb 10, 2019 at 22:44 | vote | accept | leetbacoon | ||
| Feb 5, 2019 at 8:28 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 | added 61 characters in body |
| Feb 5, 2019 at 7:47 | history | answered | Stéphane Chazelas | CC BY-SA 4.0 |