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:
(earliest affected)
unspecified
Hardware: Other All
: low enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Commandline
  Show dependency treegraph
 
Reported: 2014-07-14 15:59 UTC by Terrence Enger
Modified: 2021-09-17 07:39 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 (retired) 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.