Which shell do you use?

nekoexmachina

Well-Known Member

Reaction score: 31
Messages: 340

i use zsh too, but may be i'll switch to csh for interactive shell if i'll find time to configure it as my zsh.
 

fronclynne

Daemon

Reaction score: 175
Messages: 1,296

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.
 

ah7013

New Member

Reaction score: 2
Messages: 9

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.
 

ckester

Well-Known Member

Reaction score: 38
Messages: 288

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!
 

hedwards

Active Member

Reaction score: 21
Messages: 210

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.
 

DutchDaemon

Administrator
Staff member
Administrator
Moderator
Developer

Reaction score: 2,773
Messages: 11,279

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!
 

ckester

Well-Known Member

Reaction score: 38
Messages: 288

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". ;)
 

olav

Well-Known Member

Reaction score: 27
Messages: 374

Im using bash mostly, but after reading this thread I have to check out mksh :)
 

carlton_draught

Well-Known Member

Reaction score: 31
Messages: 288

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.
 

BrainDamage

New Member

Reaction score: 5
Messages: 15

zsh for interactive use
csh as default for root account, but normally I switch over and use the zsh
 

mirabilos

New Member

Reaction score: 1
Messages: 4

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.
 
F

fairy

Guest


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.
 

loop

Member

Reaction score: 3
Messages: 52

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
 

ckester

Well-Known Member

Reaction score: 38
Messages: 288

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?
 

sk8harddiefast

Daemon

Reaction score: 197
Messages: 2,157

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?
 

DutchDaemon

Administrator
Staff member
Administrator
Moderator
Developer

Reaction score: 2,773
Messages: 11,279

Ports install examples under /usr/local/share/examples/.
 

sk8harddiefast

Daemon

Reaction score: 197
Messages: 2,157

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
 

graudeejs

Son of Beastie

Reaction score: 692
Messages: 4,615

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
 

DutchDaemon

Administrator
Staff member
Administrator
Moderator
Developer

Reaction score: 2,773
Messages: 11,279

The default (included) .mkshrc colorizes with ls -G
No additional settings have been made.

Just tried without any .mkshrc .. still colorizes.
 

sk8harddiefast

Daemon

Reaction score: 197
Messages: 2,157

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?
 
Top