URL:
  <http://savannah.gnu.org/bugs/?44000>

                 Summary: Screen returns 1 upon successful -ls.
                 Project: GNU Screen
            Submitted by: None
            Submitted on: Wed 14 Jan 2015 02:22:32 AM UTC
                Category: User Interface
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: Cur Dev Sources
           Fixed Release: None
         Planned Release: 4.1.0
           Work Required: None

    _______________________________________________________

Details:

$ screen -ls irc
There is a screen on:
        5132.irc        (01/12/2015 04:03:49 PM)        (Detached)
1 Socket in /var/run/screen/S-dtucker.

$ echo $?
1




This is not ideal for scripts that check for an existing screen session. The
error appears to be on line 1182 of src/screen.c where a Panic call is made,
but I'm not sure how to fix it. Somehow I don't think printf + exit calls will
do it here.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44000>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


Reply via email to