bugGNU Screen - Bugs: bug #23939, screen -xRR versus screen -RRx,...


bug #23939: screen -xRR versus screen -RRx, rflag funkiness

Submitted by:  Micah Cowan <micahcowan>
Submitted on:  Sat Jul 26 18:32:11 2008  
Category: Program LogicSeverity: 2 - Minor
Priority: 5 - NormalStatus: Confirmed
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: None
Fixed Release: NonePlanned Release: Later
Work Required: 0 - Hours

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Mon Sep 7 03:27:20 2009, comment #3:

This is a bit more complete. It removes the possibility of rflag being equal to 3, the behavior of which, AFAICT, isn't defind.

Any -R overrides any -r.

Multiple/extra instances of -r are ignored (-rr is the same as -r).

There is still an implicit -r with -x.

Max Kalashnikov <maxkalashnikov>
Sat Aug 29 18:09:35 2009, comment #2:

Thanks, Max; but file-scope (statically-allocated) variables are automatically initialized to zero; only automatically-allocated variables (stack storage) require explicit initialization; this change wouldn't alter behavior.

Micah Cowan <micahcowan>
Project Member
Sat Aug 29 03:01:51 2009, comment #1:

In screen.c:

This appears to add to rflag, which might not already be initialized, accounting for inconsistency.

Patch attached.

(file #18656)

Max Kalashnikov <maxkalashnikov>
Sat Jul 26 18:32:11 2008, original submission:


Micah Cowan <micahcowan>
Project Member


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

Attach File(s):

Attached Files
file #18656:  screen-rflag.diff added by maxkalashnikov (313B - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by maxkalashnikov (Updated the item)
  • -unavailable- added by micahcowan (Submitted the item)

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Aug 29 03:01:51 2009maxkalashnikovAttached File-=>Added screen-rflag.diff, #18656
    Sun Feb 22 03:43:17 2009micahcowanPlanned Release4.1.0=>Later

    Back to the top

    Powered by Savane 3.1-cleanup1