I have the following alias that is sourced during login on my Mac PowerBook running El Capitan, OS X 10.11.3 with Developer Tools install and command line utilities installed:
alias prt_2up="enscript -G -p - \$@ | quarto -2 | lpr -P $PRINTER"
Note that $PRINTER is defined in .bashrc as:
export PRINTER=EPSON_Stylus_CX4800___barsoom
I "used" to use this as:
prt_2up file.txt
and it created a printout with 2 pages per print page with no problems.
Now, I get the following error:
19:54:50 1z [woo:~] > source .bashrc 19:54:54 1z [woo:~] > echo $PRINTER EPSON_Stylus_CX4800___barsoom 19:54:59 1z [woo:~] > prt_2up test.php enscript: couldn't open input file "noclobber": No such file or directory no output generated lpr: The printer or class does not exist.
Don't understand why $PRINTER isn't said to exist and what the input file "no clobber" is about. BTW, I've done set +o no clobber also. It doesn't appear to matter whether I set it on or off. The quarto is another utility that allows putting more than one page to a sheet of paper. Where does the noclobber come from?
I've also tried using $@ without the leading \ also. No joy.
Suggestions appreciated.