[Tcsh] Compliments to the developers and contributors.

M G P tateusg at hotmail.com
Wed Aug 31 15:01:22 UTC 2022


I wrote a guide on how to use the C Shell, in the hope it'll serve as a guide on how to adequately write scripts, as well as to encourage people on not giving up: https://gist.github.com/Krush206/bfcfd760be645150bb247f051e98c9d3


________________________________
From: Tcsh <tcsh-bounces at astron.com> on behalf of M G P <tateusg at hotmail.com>
Sent: Tuesday, August 16, 2022 1:20:16 PM
To: tcsh at astron.com <tcsh at astron.com>
Subject: Re: [Tcsh] Compliments to the developers and contributors.

https://en.m.wikipedia.org/wiki/Special:MobileDiff/1102822365
Why do they think multi-line aliases aren't possible?
alias function 'if -e \!$ then\
echo OK\
else\
echo Not OK\
endif'
function dir

I can also make it into a variable:
set function = 'if -e \!$ then\
echo OK\
else\
echo Not OK\
endif\
:'
eval $function:q dir


________________________________
From: Tcsh <tcsh-bounces at astron.com> on behalf of M G P <tateusg at hotmail.com>
Sent: Monday, January 31, 2022, 05:52
To: tcsh at astron.com <tcsh at astron.com>
Subject: Re: [Tcsh] Compliments to the developers and contributors.

And I'm very proud to find another, better workaround to the criticism in the Wikipedia webpage:
# Always creates an empty file
if (! -e myfile) echo mytext > myfile
# Workaround
if (! -e myfile) eval "echo mytext > myfile"
My workaround<https://en.wikipedia.org/wiki/Special:MobileDiff/1069012614>:
( ( : < myfile ) >& /dev/null && echo File exists. ) || ( ( echo mytext > myfile ) >& /dev/null && echo File created. ) || ( echo Cannot create file. )



________________________________
From: Tcsh <tcsh-bounces at astron.com> on behalf of M G P <tateusg at hotmail.com>
Sent: Wednesday, December 22, 2021, 03:05
To: tcsh at astron.com
Subject: [Tcsh] Compliments to the developers and contributors.

Hello.
Just did like to leave a comment in here, thanking the developers and contributors of Tcsh.

The C Shell is such a brilliant work from Bill Joy, and Tcsh makes a great enhancement and continuation to it. Furthermore, the C Shell is the only Shell out there which resembles the Thompson and Mashey Shells, which (unfortunately) were superseded by the Bourne Shell.

I'm not a long-time Tcsh user, however, after learning it, it really fascinated me - so much that I keep wondering how some dislike it.
To be fair, Tcsh taught me how to write scripts with security in mind, due its "limitations". The "limitations" imposed by the C Shell make it one of the most reliable Shells to work with, and I should not complain, but thank for that. (E.g: nesting commands is impossible; there are better ways to achieve what one want, without nesting commands.)

I really have no complaints to C Shell or Tcsh, but I must thank each of you who keep the development of an old brilliant gem from Bill Joy and Ken Greer up.
Thank you very much for your time and effort!

P.S: the complaints from a Perl developer in faqs.org are plain petty; something I learned very quickly is that most things can be worked-around with sub-shells or named FIFOs.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.astron.com/pipermail/tcsh/attachments/20220831/4a7485cf/attachment.htm>


More information about the Tcsh mailing list