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 26 Jul 2008 06:32:11 PM UTC  
Category:  Program Logic Severity:  2 - Minor
Priority:  5 - Normal Status:  Confirmed
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  None
Fixed Release:  None Planned Release:  Later
Work Required:  0 - Hours

Add a New Comment(Rich Markup)

You are not logged in

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


Mon 07 Sep 2009 03:27:20 AM UTC, 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 29 Aug 2009 06:09:35 PM UTC, 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>
Sat 29 Aug 2009 03:01:51 AM UTC, 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 26 Jul 2008 06:32:11 PM UTC, original submission:


Micah Cowan <micahcowan>


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

Attach Files:

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
  • -email is unavailable- added by maxkalashnikov (Updated the item)
  • -email is unavailable- added by micahcowan (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.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-08-29 maxkalashnikov Attached File- => Added screen-rflag.diff, #18656
    2009-02-22 micahcowan Planned Release4.1.0 => Later

    Back to the top

    Powered by Savane 3.4