Timeline for How to pass argument with spaces to a shell script function? [duplicate]
Current License: CC BY-SA 3.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Oct 18, 2015 at 9:04 | history | suggested | Soroush | `arguments` tag added. | |
| Oct 18, 2015 at 6:39 | review | Suggested edits | |||
| S Oct 18, 2015 at 9:04 | |||||
| Aug 24, 2014 at 23:38 | history | closed | Gilles 'SO- stop being evil' shell-script Users with the shell-script badge or a synonym can single-handedly close shell-script questions as duplicates and reopen them as needed. | Duplicate of Why does my shell script choke on whitespace or other special characters? | |
| Aug 23, 2014 at 20:13 | comment | added | cuonglm | @StéphaneChazelas: Oh, I retry and it works in zsh, but dash doesn't. | |
| Aug 23, 2014 at 20:05 | comment | added | Stéphane Chazelas | @Gnouc. Not in dash. In yash yes. Though zsh also accepts ksh's function definition syntax, function() echo x; function will work in zsh. So the only shells where that is a problem are ksh, bash and yash. | |
| Aug 23, 2014 at 18:34 | vote | accept | user78050 | ||
| Aug 23, 2014 at 18:31 | comment | added | cuonglm | You shouldn't use function as a name of a function. It's a keyword in ksh, and some bourne-shell like bash, zsh, dash. | |
| Aug 23, 2014 at 18:28 | answer | added | sillyMunky | timeline score: 36 | |
| Aug 23, 2014 at 18:25 | history | edited | Nidal | CC BY-SA 3.0 | fixed grammar |
| Aug 23, 2014 at 18:22 | answer | added | ctrl-alt-delor | timeline score: 19 | |
| Aug 23, 2014 at 18:18 | history | asked | user78050 | CC BY-SA 3.0 |