Timeline for Bash - Split string into array, preserving spaces
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 5, 2018 at 0:05 | vote | accept | Sean Gilhuly | ||
| Jan 4, 2018 at 23:10 | comment | added | Charles Duffy | @VenkateshMarepalli, why would you expect spaces to be preserved? The unquoted expansion is subject to string splitting. See the output from ideone's online interpreter at ideone.com/kTj9A7 | |
| Jan 4, 2018 at 23:07 | answer | added | PesaThe | timeline score: 7 | |
| Jan 4, 2018 at 23:07 | comment | added | Barmar |
@VenkateshMarepalli It split my story.txt into my and story.txt
|
|
| Jan 4, 2018 at 23:06 | answer | added | Barmar | timeline score: 2 | |
| Jan 4, 2018 at 23:04 | comment | added | Venkatesh Marepalli | I believe that the spaces are preserved in the above code. Test it again. | |
| Jan 4, 2018 at 23:00 | history | asked | Sean Gilhuly | CC BY-SA 3.0 |