Bug 1020870 - screen: option -L has changed its usage
Summary: screen: option -L has changed its usage
Status: IN_PROGRESS
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: All SUSE Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Alexander Naumov
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-19 11:55 UTC by Dr. Werner Fink
Modified: 2017-01-29 19:45 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dr. Werner Fink 2017-01-19 11:55:57 UTC
There is an API violation on the usage of screen ... I'm using in some of my spec files some lines like

  screen -L -D -m setarch $(uname -m) -R ./configure

  screen -L -D -m ./configure

to get at least a pseudo tty at configure time and now I see on Factory as well as on Tumbleweed the error

  [   53s] -L: logfile name can not start with "-" symbol

... ahm ... why does the new version now break an old API here?
Comment 1 Dr. Werner Fink 2017-01-19 11:57:24 UTC
Thu Jan 17 23:11:38 UTC 2017 - alexander_naumov@opensuse.org

- GNU Screen 4.5.0:
 * It's possible to specify logfile's name via command line
   parameter '-L'. 

 Fixes:
 * broken handling of "bind u digraph U+"
 * crash with long $TERM
 * crash when bumping blank window
 * build for AIX
 * %x improperly separating arguments
 * install with custom DESTDIR
Comment 2 Dr. Werner Fink 2017-01-19 12:01:17 UTC
Indeed the old screen shows in manual page

       -L   tells screen to turn on automatic output logging for the windows.

and screen 4.5.0 does it now combine with an other feature

       -L   tells screen to turn on automatic output logging for the windows.
            By  default,  logfile's  name  is screenlog.1. You can sets new
            name: add it right after -L option e.g. "screen -L my_logfile".

IMHO the new behaviour option -L should ignore not only an empty line but also all behind a leading - including the `-' its self.
Comment 3 Alexander Naumov 2017-01-19 20:04:20 UTC
You are right. In this case it will works if:
* "-L" would be a last parameter.
* you specify log file name additionally
Comment 4 Alexander Naumov 2017-01-29 19:45:22 UTC
It should fix this problem:
https://build.opensuse.org/request/show/453045

It supports all old API.
To specify new logfile name you should use "-L logfile <FILE_NAME>" option. In case of "-L" option, screen will use default logfile name (screenlog.0).