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: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned 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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 18 Jul 2014 09:23:56 PM UTCcloosOpen/ClosedOpen=>Closed
    Sun 10 Jul 2011 01:19:11 AM UTCdioclesStatusNone=>Fixed
    Sat 09 Jul 2011 11:12:42 PM UTCdioclesSummaryhighlight mode "ChangeLog" misnamed in --help-highlight=>space after -E option produces error

    Back to the top

    Powered by Savane 3.1-cleanup1