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


bug #24844: space after -E option produces error

Submitted by:  Ben Asselstine <benasselstine>
Submitted on:  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

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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

Pushed an updated form of the usage information.

Tim Retout <diocles>
Project 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:


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>
Project 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>
Project 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:

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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    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 "ChangeLog" misnamed in --help-highlight => space after -E option produces error

    Back to the top

    Powered by Savane 3.3