URL:
<http://savannah.gnu.org/bugs/?53313>
Summary: odd backslash escape parsing of the echo command
Project: GNU Screen
Submitted by: soliton
Submitted on: Fri 09 Mar 2018 10:51:27 PM UTC
Category: Program Logic
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: 4.5.0
Fixed Release: None
Planned Release: None
Work Required: None
_______________________________________________________
Details:
screen -X echo '\' produces an error instead of printing \.
: Missing " quote.
According to amade it's the same with the newest version.
One could argue that a single unescaped backslash is not valid but then I
think at least the error message should be improved.
I suggest to do it similar to printf though which just prints the \ in this
case.
It seems to me that the backslash escape and quote handling could be improved
in general.
screen -X echo '\"\"\r\n\t' does not seem to do much useful. Perhaps it'd be
better to not interprete backslash escapes or quotes at all.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53313>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/