bugGNU Enscript - Bugs: bug #24844, space after -E option produces...

 
 

bug #24844: space after -E option produces error

Submitter:  Ben Asselstine <benasselstine>
Submitted:  Sat 15 Nov 2008 02:50:29 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 10 Jul 2011 01:19:11 AM UTC, comment #4: 

Pushed an updated form of the usage information.

Tim Retout <diocles>
Group Member
Sun 10 Jul 2011 12:24:52 AM UTC, comment #3: 

Yeah, so having thoroughly chased this one down, optional arguments in getopt_long need to be separated from their option by an equals sign:

http://sources.redhat.com/bugzilla/show_bug.cgi?id=4690

This also seems to apply to the short form of these options.

Not much I can do about that, but perhaps the enscript documentation should be made clearer for these options.

Tim Retout <diocles>
Group Member
Sat 09 Jul 2011 11:12:42 PM UTC, comment #2: 

This seems to be because of the space between '-E' and 'changelog'.  Hmm.

Tim Retout <diocles>
Group Member
Mon 17 Nov 2008 07:54:20 PM UTC, comment #1: 

Strangely enough, the answer was to run it like this:

enscript -Echangelog -w html ./ChangeLog -o -

this bug is okay to close.

Ben Asselstine <benasselstine>
Sat 15 Nov 2008 02:50:29 AM UTC, original submission:  


Using "-E changelog" doesn't work but -E ChangeLog does work.

--help-highlight reports "changelog" as the name of the mode, but it doesn't work.

Here's an example:

$ enscript -E ChangeLog --color -w html ./ChangeLog -o - 

works, while:

$ enscript -E changelog --color -w html ./ChangeLog -o - 

does not.  It yields no output at all.

Perhaps there are other case sensitive issues in the mode names of the --help-highlight output.

This bug applies to version 1.6.4.

Ben Asselstine <benasselstine>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cloos (Updated the item)
  • -email is unavailable- added by diocles (Posted a comment)
  • -email is unavailable- added by benasselstine (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-07-18 cloos Open/ClosedOpen Closed
    2011-07-10 diocles StatusNone Fixed
    2011-07-09 diocles Summaryhighlight mode &quot;ChangeLog&quot; misnamed in --help-highlight space after -E option produces error

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code