bugGNU Screen - Bugs: bug #44947, Preselection of window for -X exec...

 
 

bug #44947: Preselection of window for -X exec ignored in screen

Submitter:  Christof Kaufmann <christofkaufmann>
Submitted:  Tue 28 Apr 2015 04:42:55 PM UTC
   
 
Category:  Program Logic Severity:  3 - Normal
Priority:  * 5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  4.2.1
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 28 Apr 2015 04:42:55 PM UTC, original submission:  

When I try to preselect a window in which a command should be executed, the setting is (almost) ignored and the currently selected window is used instead. This issue can easily be reproduced:

screen -dmS test -t win1
screen -r test -X screen -t win2
screen -r test -p 0 -X exec echo text0
screen -r test -p 1 -X exec echo text1

Now reconnect with

screen -r test

and see that text0 and text1 are printed in the same window. However, when using a too high number (e. g. 2) for the preselection, the command is not executed at all (which is good). I think the wrong preselection is not intended, since with the following command the preselection works as expected:

screen -dmS test -t win1
screen -r test -X screen -t win2
screen -r test -p 0 -X stuff $'echo text0\r'
screen -r test -p 1 -X stuff $'echo text1\r'


This was tested on Debian Jessie with Screen version 4.02.01 and on Rocks 6.1 with Screen version 4.00.03.

This issue might be related to Bug 31247. It might also be related that the select command does not work (from outside):

screen -r test -X select 0


Christof Kaufmann <christofkaufmann>

 

(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 christofkaufmann (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code