From: Richard Miller <miller@hamnavoe.demon.co.uk>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Fax problem
Date: Fri, 1 Jun 2001 14:09:27 +0100 [thread overview]
Message-ID: <E155olA-0003mL-0X@anchor-post-33.mail.demon.net> (raw)
There's a cute bug in /bin/fax, where it checks the input file type
to see if postscript or text files need converting to g3 fax format:
# convert to g3
switch(`{file $infiles(1)}){
case *g3* *fax*
g3files=$infiles
case postscript
gs -dSAFER '-sDEVICE=dfaxlow' ...
g3files=($tmp.*)
case *
lp -dstdout $infiles > $tmpps
gs -dSAFER '-sDEVICE=dfaxlow' ...
g3files=($tmp.*)
}
Because file(1) echoes the filename, the first case will be selected
erroneously for a text or postscript file whose name contains 'fax' -
and in particular when faxing from standard input, because stdin gets
copied to a temp file called /tmp/fax.in.$pid .
Simple correction: change the switch command to
switch(`{file <$infiles(1)}){
-- Richard Miller
next reply other threads:[~2001-06-01 13:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-01 13:09 Richard Miller [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-06-02 16:58 presotto
2001-06-02 13:57 Richard Miller
2001-05-31 22:43 William Staniewicz
2001-05-31 21:07 presotto
2001-05-31 21:06 Russ Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E155olA-0003mL-0X@anchor-post-33.mail.demon.net \
--to=miller@hamnavoe.demon.co.uk \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).