2/22 Is there any advantage of tcsh over bash? I've always used tcsh for
my shell and sh for programming. I'm wondering if tcsh has anything
(other than automatically setting $REMOTEHOST) that bash doesn't.
\_ one thing I like about tcsh that bash doesn't have is you can hit
^D on an attempted file complete, and it will list possible
completions. Pretty useful if you dont remember the exact file name
and dont want to have to abort and retype a commandline just to
do a 'ls'. (well this isn't a default bash option, it may exist,
I just find it easier to 'exec tcsh' than 'man bash') -ERic
\_ in bash, you hit tab twice. $ ls foo^I^I[expansion list returned]
but you can get this particular interface in tcsh as well. I
imagine it's a holdover from csh filec. --jon
\_ If you put "set show-all-if-ambiguous on" in .inputrc you will
need to hit tab only once in most cases.
\_ tcsh has a convenient %~ option for the prompt. Does bash have
a similarly simple counterpart?
\_ what does the '%~' option do?
\_ it prints your current working directory with respect to
your home directory (e.g.: ~user/somedir). man tcsh
\_ Of course bash can do silly things like that. You can
put about anything in your prompt. man bash
\_ I did man bash and didn't see anything about this. Is
there way to do it that is as simple as in tcsh? And
as far as "silly things" goes, realistically, I think
that as far as important (ie, "non-silly") features go,
bash/tcsh/ksh are about the same, so it's the little
things that make the difference.
\_ PS1="\u@\h:\w\\$ "
\_ this only works for directories off of your own
home dir, not off of other users'.
\_ okay. I use ksh, I'd use bourne shell if I could hack
in filec and arrow keys for history. This sort of
stuff is frivolous.
\_ Use zsh. The best of both worlds. (In fact, all most all of both
worlds)
\_ /sbin/sh is the STANDARD shell! Real men know how to type and
don't need fancy line editing. Use Bourne Shell as God and Steve
Steve intended. Though Korn Shell is the spawn of the Devil and
David Korn, its use can be tolerated on systems with clueless
admins who think that /bin/csh (Bill must have been intoxicated
or stoned when he wrote this) is the best thing since DECNET
and LAT came out.
\_ LAT! LAT is the STANDARD protocol! |