Timeline for Trying to delete a word-final characters with sed regex
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 30, 2017 at 18:19 | comment | added | CoreyJJohnson | Interesting. I'm having trouble wrapping my head around what you're saying but it fully makes sense. Thanks. | |
| Nov 30, 2017 at 13:36 | comment | added | Stéphane Chazelas |
No, the shell passes arguments to echo and echo writes the concatenation of them with space and a newline character to the pipe. $IFS is involved in the read builtin command and unquoted parameter and arithmetic expansions and command substitutions and the expansion of "$*" and "${array[*]}" and that's about it.
|
|
| Nov 30, 2017 at 13:29 | comment | added | CoreyJJohnson | The shell sends the arguments to sed via the pipeline. I believe that $IFS still applies here. | |
| Nov 27, 2017 at 19:44 | comment | added | Stéphane Chazelas |
Note that the only command that is potentially affected by $IFS in there is echo $SHELL as you forgot to quote the variable expansion. Other than that, the value of $IFS is not relevant here.
|
|
| Nov 27, 2017 at 18:30 | history | edited | CoreyJJohnson | CC BY-SA 3.0 |
added more stuff
|
| Nov 27, 2017 at 18:15 | history | answered | CoreyJJohnson | CC BY-SA 3.0 |