1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Which shell do you use?

Discussion in 'General' started by Citsakots, Dec 6, 2008.

  1. darkshadow

    darkshadow New Member

    Messages:
    170
    Likes Received:
    0
  2. nekoexmachina

    nekoexmachina New Member

    Messages:
    312
    Likes Received:
    0
    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.
     
  3. fronclynne

    fronclynne New Member

    Messages:
    1,297
    Likes Received:
    0
    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.
     
  4. ah7013

    ah7013 New Member

    Messages:
    10
    Likes Received:
    0
    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.
     
  5. ckester

    ckester New Member

    Messages:
    288
    Likes Received:
    0
    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!
     
  6. hedwards

    hedwards New Member

    Messages:
    189
    Likes Received:
    0
    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.
     
  7. DutchDaemon

    DutchDaemon Administrator Staff Member Administrator Moderator

    Messages:
    10,661
    Likes Received:
    23
    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!
     
  8. ckester

    ckester New Member

    Messages:
    288
    Likes Received:
    0
    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". ;)
     
  9. olav

    olav New Member

    Messages:
    349
    Likes Received:
    0
    Im using bash mostly, but after reading this thread I have to check out mksh :)
     
  10. graudeejs

    graudeejs Member

    Messages:
    4,594
    Likes Received:
    0
  11. hedwards

    hedwards New Member

    Messages:
    189
    Likes Received:
    0
    Those results aren't terribly surprising. The clone of the Bourne Shell FreeBSD uses ought to be quite a bit quicker as it doesn't incorporate as much cruft as bash does.
     
  12. carlton_draught

    carlton_draught New Member

    Messages:
    288
    Likes Received:
    0
    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.
     
  13. graudeejs

    graudeejs Member

    Messages:
    4,594
    Likes Received:
    0
    So what cool stuff do you do with bash, that other shells can't do?

    http://en.wikipedia.org/wiki/Comparison_of_computer_shells
     
  14. lme@

    lme@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    622
    Likes Received:
    9
  15. BrainDamage

    BrainDamage New Member

    Messages:
    16
    Likes Received:
    0
    zsh for interactive use
    csh as default for root account, but normally I switch over and use the zsh
     
  16. mirabilos

    mirabilos New Member

    Messages:
    4
    Likes Received:
    0
    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.
     
  17. fairy

    fairy Guest

    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.
     
  18. loop

    loop New Member

    Messages:
    52
    Likes Received:
    0
    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
     
  19. ckester

    ckester New Member

    Messages:
    288
    Likes Received:
    0
    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?
     
  20. sk8harddiefast

    sk8harddiefast Member

    Messages:
    2,011
    Likes Received:
    5
    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?
     
  21. DutchDaemon

    DutchDaemon Administrator Staff Member Administrator Moderator

    Messages:
    10,661
    Likes Received:
    23
    Ports install examples under /usr/local/share/examples/.
     
  22. sk8harddiefast

    sk8harddiefast Member

    Messages:
    2,011
    Likes Received:
    5
    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
     
  23. graudeejs

    graudeejs Member

    Messages:
    4,594
    Likes Received:
    0
    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
     
  24. DutchDaemon

    DutchDaemon Administrator Staff Member Administrator Moderator

    Messages:
    10,661
    Likes Received:
    23
    The default (included) .mkshrc colorizes with ls -G
    No additional settings have been made.

    Just tried without any .mkshrc .. still colorizes.
     
  25. sk8harddiefast

    sk8harddiefast Member

    Messages:
    2,011
    Likes Received:
    5
    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?