Which shell do you use?

tcsh because I'm lazy. I don't use very many features but I'm used to the completion paradigm of tcsh on freebsd, and I have no good reason to change, since it's in /bin.

I usually install zsh and pdksh (& sometimes mksh) and every once in a great while I'll change my ol' user account over to one, but I go back to tcsh after a couple of days.
 
bash for me because I come from a Linux background and all the Linux distros I have tried used bash so i'm just used to it.
 
I've been using mksh since seeing killasmurf recommend it in another thread.

Reasons: size, speed, absence of GNUish cruft. Ability to redirect stderr. Enhanced pattern matching in variable substitutions. Reasonable license!
 
For my main user account, I've switched from tcsh to bash on account of all the scary things I was reading about the c shells. The main one being that other shells have the ability to evaluate what a command is going to expand to without actually executing it.

But, as for root, I'll leave it as is forever. If, however, one is going to change it then for God's sake keep it as one of the ones which is shipped as a part of the base system. Having had the experience earlier today where I couldn't log in as myself because I hadn't finished the dependencies for bash I'd highly recommend against using ports for root's shell.

I do however dislike the way that bash handles the history. It's always irritated me that you can't type in a few characters of the command and skip to just the commands you've entered that start with those characters.
 
ckester said:
I've been using mksh since seeing killasmurf recommend it in another thread.

Reasons: size, speed, absence of GNUish cruft. Ability to redirect stderr. Enhanced pattern matching in variable substitutions. Reasonable license!

I've switched to mksh from bash as well. Less clutter, better speed, and with the included mkshrc sample it can be made to look like bash with minor tweaks. And NO dependencies whatsoever!
 
I didn't know about that mkshrc sample, Dutch. Thanks for pointing it out. Something to play with today!

The .profile I'd been using with bash seems to be working just as well with mksh, without needing any edits. What I liked in bash is apparently just the stuff they borrowed from Korn shell, and not any of their own "innovations". ;)
 
I used sh for root, and bash for users. In root, I always switch straight to bash for interactive use. Scripts are done in sh when I have a choice. However, I will have a look at some of the more popular options after reviewing this thread.
 
lme@ said:
Now that our beloved Bourne Shell got support for filename completion, we can all switch to it! :)

It’s actually an almost-POSIX shell, not(!) a Bourne shell,
with broken behaviour for "sh -c 'somescript' -- foo bar baz"
which mksh can emulate when compiled with a specific option,
-DMKSH_MIDNIGHTBSD01ASH_COMPAT, and then when either called
with “-o sh” or as sh when compiled with -DMKSH_BINSHREDUCED.

I’d say ditch it. MidnightBSD is doing so, and they like mksh.
 
killasmurf86 said:
You could have included zsh. It's usually faster than bash and has better sh emulation.
Anyway, shell scripts are easy to rewrite for bash/zsh/whatever so that they're faster than on /bin/sh. You'll see real performance when you reduce external commands to minimum.
 
csh for root, zsh for user.

I've been using zsh for years ... mostly for it's completion abilities (I'm a lazy typist :). Started using it well before any of the other shells featured built-in completion, and haven't bothered to change
 
It looks like those of us who are looking for something other than bash are about evenly divided between mksh and zsh. Perhaps we need to do a head-to-head comparison between these two. What benchmarks do you suggest?
 
Hi. I use bash but i want to use mksh but i didn't find none .mkshrc sample googling. Even on mirbsd site.
Is anyone how can post one or give me a url with a sample?
 
This was the path i was searching for. I found it and i copy it on my home directory.
I set alias ls='ls -G' and i have colorised terminal :)
But how can i colorise my hostname too?
I don't understand nothing on this file :P
 
I've read man mksh.
As I understand, you can't colorize it (without some trick, which have side effects)

At least I can post small replies
 
The default (included) .mkshrc colorizes with ls -G
No additional settings have been made.

Just tried without any .mkshrc .. still colorizes.
 
Just tried without any .mkshrc .. still colorizes.
On me default is not ls -G. Is ls -F.
No. Without any .mkshrc on my home directory all colours are white :(
Also without any .mkshrc is not giving me hostname before $
I open mksh from bash. This is possible to make the difference?
 
Back
Top