bugGNU Screen - Bugs: bug #53313, odd backslash escape parsing of...

 
 

bug #53313: odd backslash escape parsing of the echo command

Submitted by:  Soliton <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 Release:  4.5.0
Fixed Release:  None Planned Release:  None
Work Required:  None

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 09 Mar 2018 10:58:57 PM UTC, comment #1: 

(Talking about the command/shell built-in printf.)

Soliton <soliton>
Fri 09 Mar 2018 10:51:27 PM UTC, original submission:  

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.

Soliton <soliton>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by soliton (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.5