Re: Reducing KODRETRY

"Steven W. Orr" <[email protected]>
Newsgroups gmane.mail.pine.general
Organization SysLang
Message-ID <[email protected]>
On Tuesday, Dec 26th 2006 at 16:31 -0800, quoth Joseph Tam:

=>On Sat, 23 Dec 2006, Steven W. Orr wrote:
=>
=>> pine ()
=>> {
=>>    jobs -ls pine > /dev/null && fg || \pine
=>> }
=>> 
=>> which is small enuff that you could even get it into an alias...
=>> 
=>> alias pine='jobs -ls pine > /dev/null && fg || \pine'
=>
=>Brilliant!  Too bad I'm using tcsh: I'm coming to the conclusion I really
=>should
=>be using another shell like bash which doesn't have a brain-dead way of
=>handling
=>built-in commands.  Try as I might, I can't test the exit code, nor pipe from,
=>"fg %pine" in tcsh, rendering all these methods useless.

Normally I'd just reply to you personally, but this is such an aggregious 
situation that I have to lett as many people know whenever possible.

(drum roll please) There are two flavors of shells in this world and all 
csh flavored shells suck.

Please read this as many times as it takes to master any shell man page. 
(hint: 50 is a minumum.)

http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/

The history of why you were duped into using csh/tcsh/whatevercsh goes 
back to the early days of SunOS when Sun made the csh the default shell 
for their boxes. Read the whynot. Learn bash. Love it. csh's should all 
simply be deleted.

-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net
_______________________________________________
Pine-info mailing list
[email protected]
http://mailman1.u.washington.edu/mailman/listinfo/pine-info
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.