Post History
I've also tried using \ to escape the newline, but that also immediately executes, e.g. echo 'cat' \ just immediately prints cat \ This shouldn't be happening. Ending a line with \ in any ...
#2: Post edited
- > I've also tried using \ to escape the newline, but that also immediately executes, e.g. echo 'cat' \ just immediately prints
- >
- > cat
- > \
This shouldn't be happening. Ending a line with `\` in any sh-compatible shell is the standard way to represent a line continuation, per the POSIX Shell Command Language standard. I can't reproduce the behavior you describe in Bash 5.3, either with or without POSIX mode enabled, nor would I expect it to happen in any other version. There is a missing piece of the puzzle here.
- > I've also tried using \ to escape the newline, but that also immediately executes, e.g. echo 'cat' \ just immediately prints
- >
- > cat
- > \
- This shouldn't be happening. Ending a line with `\` in any sh-compatible shell is the standard way to represent a line continuation, per the [POSIX Shell Command Language standard](https://pubs.opengroup.org/onlinepubs/9799919799/utilities/V3_chap02.html#tag_19_02_01). I can't reproduce the behavior you describe in Bash 5.3, either with or without POSIX mode enabled, nor would I expect it to happen in any other version. There is a missing piece of the puzzle here.
#1: Initial revision
> I've also tried using \ to escape the newline, but that also immediately executes, e.g. echo 'cat' \ just immediately prints > > cat > \ This shouldn't be happening. Ending a line with `\` in any sh-compatible shell is the standard way to represent a line continuation, per the POSIX Shell Command Language standard. I can't reproduce the behavior you describe in Bash 5.3, either with or without POSIX mode enabled, nor would I expect it to happen in any other version. There is a missing piece of the puzzle here.
