Timeline for bash $(printf "%s\n") does not create multiline [duplicate]
Current License: CC BY-SA 3.0
18 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 17, 2022 at 11:13 | history | duplicates list edited | ilkkachu | duplicates list edited from Why does my shell script choke on whitespace or other special characters? to When is double-quoting necessary?, Why does my shell script choke on whitespace or other special characters? | |
| Jan 17, 2022 at 11:13 | history | closed | ilkkachu bash Users with the bash badge or a synonym can single-handedly close bash questions as duplicates and reopen them as needed. | Duplicate of Why does my shell script choke on whitespace or other special characters? | |
| May 31, 2016 at 14:37 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Feb 25, 2015 at 21:05 | answer | added | Walter A | timeline score: 2 | |
| Feb 25, 2015 at 11:10 | history | edited | Rudolf Gröhling | CC BY-SA 3.0 | added 97 characters in body |
| Feb 25, 2015 at 11:03 | history | edited | Rudolf Gröhling | CC BY-SA 3.0 | added 269 characters in body |
| Feb 25, 2015 at 10:43 | history | edited | Rudolf Gröhling | CC BY-SA 3.0 | added 501 characters in body |
| Feb 25, 2015 at 10:09 | comment | added | cuonglm | @Vaclav: So you need quote your variable "$COMMANDS" and later solution won't work. $'\n' does not work in dash. | |
| Feb 25, 2015 at 10:00 | comment | added | Rudolf Gröhling | @cuonglm my scripting provider is dash (running debian/wheezy) | |
| Feb 23, 2015 at 11:39 | comment | added | cuonglm | @Vaclav: I mean what is your /bin/sh link to? /bin/bash or anything else? | |
| Feb 23, 2015 at 11:25 | comment | added | Rudolf Gröhling | @cuonglm here is perfect explanation | |
| Feb 23, 2015 at 9:00 | comment | added | wurtel | for what it's worth, the printf thing works fine here. | |
| Feb 22, 2015 at 21:43 | history | migrated | from serverfault.com (revisions) | ||
| Feb 21, 2015 at 20:37 | comment | added | Chris Davies | Or use a command line FTP client such as lftp | |
| Feb 21, 2015 at 19:41 | comment | added | Craig Miskell | A word of advice: trying to do this with strings, command line ftp, and bash, is unlikely to work even if you get past this hurdle (been there, done that etc.). You should give serious consideration to using 'expect', or using some other language with an FTP library (e.g. python). | |
| Feb 21, 2015 at 18:30 | comment | added | cuonglm | What is your /bin/sh? Is it a symlink to bash? | |
| Feb 21, 2015 at 18:19 | comment | added | Dan | I think you have to mess with IFS (set it to \n only, not leave it to be the default \n or tab or space) to get it right | |
| Feb 21, 2015 at 12:59 | history | asked | Rudolf Gröhling | CC BY-SA 3.0 |