bugGNU Screen - Bugs: bug #29078, screen -q -ls gives wrong return...


bug #29078: screen -q -ls gives wrong return value

Submitted by:  Friedrich Delgado Friedrichs <taupan>
Submitted on:  Fri 05 Mar 2010 01:47:58 PM UTC  
Category: User InterfaceSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: Amadeusz Sławiński <amade>
Open/Closed: ClosedRelease: Cur Dev Sources
Fixed Release: 4.2.1Planned 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.


Mon 08 Jun 2015 04:05:41 PM UTC, comment #4:

Yes it's already in, fixed in d07546e23fcbb24250660d416863025a00c2f5bc

Amadeusz Sławiński <amade>
Project AdministratorIn charge of this item.
Mon 08 Jun 2015 10:26:04 AM UTC, comment #3:

Is this patch already in git? Can we close this report?

Alexander Naumov <anaumov>
Project Administrator
Sat 06 Mar 2010 02:18:18 PM UTC, comment #2:

Yes, that patch helps. Return value is now 9, if I have the socket directory but no screens, 11 if I have one screen, 12 for two...

Friedrich Delgado Friedrichs <taupan>
Fri 05 Mar 2010 03:37:23 PM UTC, comment #1:

This might be an old bug. Can you test if http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/karmic/screen/karmic/annotate/head%3A/debian/patches/23exitcode_q_ls.dpatch helps?

Sadrul Habib Chowdhury <sadrul>
Project Administrator
Fri 05 Mar 2010 01:47:58 PM UTC, original submission:

With stable versions of screen, when I have the following output from screen -ls:

There is a screen on:
12095.pts-2.orion (Attached)
1 Socket in /tmp/screens/S-fdf.

screen -q -ls gives me 11 as return value (10 for socket directory, +1 for each attachable session according to the manpage).

With recent git ( da8e87d6505fb33ed131144a33af88c6d0dc96fd and later) I get just 10 as return value.

This is in direct contradiction to the manpage, so I assume it's a bug.

If however there was a good reason to change this, then this is just a documentation bug.

Friedrich Delgado Friedrichs <taupan>


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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by amade (Posted a comment)
  • -unavailable- added by anaumov (Posted a comment)
  • -unavailable- added by sadrul (Posted a comment)
  • -unavailable- added by taupan (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 08 Jun 2015 04:05:41 PM UTCamadeStatusNone=>Fixed
      Assigned toNone=>amade
      Fixed ReleaseNone=>4.2.1

    Back to the top

    Powered by Savane 3.1-cleanup1