[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: a command with a long list of options



CONFIGURATION FILES
       Enscript reads configuration information from the following sources (in this  order):  command  line  options,
       environment variable ENSCRIPT, user's personal configuration file ($HOME/.enscriptrc), site configuration file
       (/etc/enscriptsite.cfg) and system's global configuration file (/etc/enscript.cfg).


One solution:

> ENSCRIPT= —verbose —media=letter -2 —landscape —borders ….

The personal configuration resides in ~/.enscriptrc and NOT in ~/.enscript.cfg. esncript.cfg is the global config and resides in /etc/enscript.cfg

Regards!



On 16 Sep 2015, at 08:04, rlharris@oplink.net wrote:

On Wed, September 16, 2015 12:33 am, pi@aztec.co.za wrote:
enscript() { command enscript --verbose --media=letter -2 --landscape
--borders --header='$n|A.D. $D{%Y.%m.%d}|$* gmt | Page $% of $=' $@
}

I cut and pasted the above definition into ~/.bashrc and then restarted
the machine to ensure that .bashrc was being read.  But the only response
I get is:

$ enscript howto.enscript
AFM: scanning path...
AFM: reading font map "/usr/share/enscript/afm/font.map"
processing file ""...

What did I do wrong?

RLH







Reply to: