Re: Custom command newline
Thanks for your suggestion.
We will see, if more people ask for this.
We will see, if more people ask for this.
printf "\n"
remote-side to simulate it, but that somewhat defeats the purpose of why I want to use a Here String in the first place, which is to initialize a variable for a path that may contain all sorts of characters. For instance, let's say WinSCP included the pattern !L
to represent LF characters, I would have my command be:
PATH=$(cat <<'///'!L!$!L///!L);!Lmycommand "${PATH:0:-1}"
PATH=$(cat <<'///'
!$
///
);mycommand "${PATH:0:-1}"
///
is used to terminate since there isn't any scenario I know of where a path can include more than two forward slashes (not counting URIs). Then, !$
and ${PATH:0:-1}
are used because otherwise the command would include !!L
– which would get interpreted as an exclamation point and the letter L
instead of the file path and a LF character. Anyway, you get the idea.