Article View: news.software.readers
Article #2338Re: Printing From trn?
From: Wayne Davison
Date: Wed, 07 Oct 1992 20:39
Date: Wed, 07 Oct 1992 20:39
52 lines
2307 bytes
2307 bytes
westes@netcom.com (Will Estes) wrote:
> how do I configure trn so that it uses csh instead of sh as the
> environment in which to execute the piped command?
Excerpts from the trn manpage:
# | command
# Shorthand for "s | command".
# s destination
# Save to a filename or pipe using sh. If the first
^^^^^^^^
# S destination
# Save to a filename or pipe using a preferred shell,
# such as csh. Which shell is used depends first on
# what you have the environment variable SHELL set to,
So by extrapolation, you'd do a:
S | progname
to use the current setting of your SHELL variable. Alternately, you could
macro | to "S|" by putting the following line into your .rnmac file:
| %(%m=a?S|:|)
though you might just want to macro some other character to the entire
print command:
~ %(%m=a?S|lpr^M:~)
(both of these are untested, but they should work). Also, check out the
PIPESAVER environment variable:
# PIPESAVER (%)
# The shell command to execute in order to accomplish
# a save to a pipe ("s | command" or "w | command").
# The command typed by the user is substituted in as
# %b.
#
# Default: %(%B=^0$?<%A:tail +%Bc %A |) %b
#
# Explanation: if %B is 0, the command is "<%A %b",
which could be modified to execute csh from the spawned sh. Perhaps:
%(%B=^0$?/bin/csh <%A:tail +%Bc %A | /bin/csh) %b
would work.
--
Wayne Davison
davison@borland.com
Technical Details
Message-ID:
<Bvrqpq.6oJ@borland.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-netcom.general.mbox.zip!sparky!uunet!gumby!wupost!csus.edu!borland.com!davisonReferences:
<1992Oct4.213425.3041@netcom.com> <_4x1Hg08&9@atlantis.psu.edu> <1992Oct5.234128.17631@netcom.com>Show Full Headers
Complete Article Headers
Message-ID: <Bvrqpq.6oJ@borland.com> Subject: Re: Printing From trn? Date: Wed, 7 Oct 1992 20:39:26 GMT From: davison@borland.com (Wayne Davison) References: <1992Oct4.213425.3041@netcom.com> <_4x1Hg08&9@atlantis.psu.edu> <1992Oct5.234128.17631@netcom.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-netcom.general.mbox.zip!sparky!uunet!gumby!wupost!csus.edu!borland.com!davison Newsgroups: news.software.readers,netcom.general,netcom.software Organization: Borland International Lines: 52