Article View: comp.unix.shell
Article #255Aliases which pipe into more in csh
From: Mark R. Ludwig
Date: Sat, 01 Aug 1992 07:35
Date: Sat, 01 Aug 1992 07:35
27 lines
1657 bytes
1657 bytes
Before you flame me for using the C shell, please consider my
situation. We are a development shop, and we have Unix boxes from up
to ten vendors which are here on and off at _their_ whim. We do not
have the staff to maintain a consistent environment on each from the
second it appears on our doorstep, so we have to try to use what is
generally available and hope for the best.
Consider the following alias commands:
alias h 'history -r \!* | more'
alias llm 'ls -l \!* | more'
We have sporadic problems with the resulting aliases. Sometimes the
"h" hangs, and ^Z followed by "fg" is required to get it going.
Sometimes it works without any hassle. The same is true of "llm," but
it generally works on BSD descendants, and has more consistent
problems on SysV descendants and some newer boxes.
I've tried defining these aliases in parentheses, thinking a sub-shell
might clarify the I/O handling, but it hasn't seemed to help. Could
someone enlighten me either with a solution or definitive information
(i.e., an understanding of the source) that it fundamentally cannot
work? Thanks in advance.$$
--
INET: mrl@uai.com BANG: uunet!uaisun4!mrl ICBM: USA; Lower Left Coast
"You can get a crowd to clap at a phone number, if the inflection is right."
-- Dave Ross
Technical Details
Message-ID:
<MRL.92Aug1073518@sun4.uai.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!uaisun4!mrlShow Full Headers
Complete Article Headers
Newsgroups: comp.unix.shell Path: arc1-ca.pugleaf.net!sparky!uunet!uaisun4!mrl From: mrl@uai.com (Mark R. Ludwig) Subject: Aliases which pipe into more in csh Message-ID: <MRL.92Aug1073518@sun4.uai.com> Sender: mrl@uai.com (Mark R. Ludwig) Organization: Universal Analytics, Inc., Torrance (LA), CA Date: 1 Aug 92 07:35:18 Lines: 27