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: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: Cur Dev Sources
Fixed Release: NonePlanned Release: None
Work Required: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

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):
   
   
Comment:
   

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 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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup