Bug 81353 - RFE: "--" on command line to mark end of options
Summary: RFE: "--" on command line to mark end of options
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Libreoffice (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-14 15:59 UTC by Terrence Enger
Modified: 2014-07-16 12:34 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Terrence Enger 2014-07-14 15:59:57 UTC
<http://www.defensecode.com/public/DefenseCode_Unix_Wildcarsx_Gone_Wild.txt>
points out that shell wildcard expansion can deliver surprising
results in the presence of filenames which look like switches to the
program.  For example, the command

    soffice --invisible --nologo --convert-to pdf --outdir subdir1 *

looks like a reasonable attempt to create a pdf for each file in the
current dirrectory.  However, if the current directory contains

    total 12
    -rw-r--r-- 1 terry terry 9320 Jul 14 10:47 nuttin.odt
    -rw-r--r-- 1 terry terry    0 Jul 14 10:52 --version

the effect is to display the version of LibreOffice and exit.


This is a contrived example, of course.  And I lack the imagination to
think of a terribly bad result.  So the request boils down to making
LibreOffice work like the Gnu/Linux utilities.  I think it would be
harmless to have the requested behaviour on all platforms.
Comment 1 Owen Genat 2014-07-16 12:34:44 UTC
(In reply to comment #0)
> http://www.defensecode.com/public/DefenseCode_Unix_Wildcarsx_Gone_Wild.txt

http://www.defensecode.com/public/DefenseCode_Unix_WildCards_Gone_Wild.txt for correct link. Confirmed. Seems like a reasonable request. Status set to NEW. Severity set to enhancement.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.