You are not logged in.

#1 2005-07-15 20:26:35

paranoos
Member
From: thornhill.on.ca
Registered: 2004-07-22
Posts: 442

shell recommendations

i'm a long time user of bash. i think i briefly touched korn shell on an aix server at university, but i always ran bash instead.

bash is nice to use for quickly automating tasks obviously ... but i'm wondering, i know a lot of people here use other shells, like tcsh or zsh (how about pdksh? it's in the repos too)

let's have a discussion about advantages and disadvantages of each. i'd like to try some different shells tomorrow.

bash has decent tab completion ... i'm using my own custom bashcompletion scripts (i cut out a lot of stuff from the official scripts to speed it up).

but, bash has awful syntax. i still don't really understand the difference between [ ] and [[ ]].  ... and while it doesn't bother me, it has a large memory footprint as well.

so? what's your take on your favourite shell? why should people use it?

Offline

#2 2005-07-15 20:48:00

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: shell recommendations

I like bash. I feel like a newb in any other shell.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-07-15 20:50:41

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: shell recommendations

I've always used bash. I rarely use it for more than short scripts, since python generally serves better. As a shell, bash with my custom input_rc is exactly what I need.

Dusty

Offline

#4 2005-07-15 21:02:31

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: shell recommendations

I am using tcsh at the university and until recently I was using it at home.  Since I wanted to learn a scripting language, I chose bash and decided to switch to it.  I have been able to recreate my tcsh environment in bash.  The only (small) issue is that when I do an history search, it doesn't move the cursor at the end of the line.

Offline

#5 2005-07-15 22:54:33

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: shell recommendations

Right now, including my vote it is:
bash     
     100%      [ 7 ]
tcsh    
     0%      [ 0 ]
zsh    
     0%      [ 0 ]
korn or pdksh    
     0%      [ 0 ]
other, mention below    
     0%      [ 0 ]

I am not surprised. I have not run across any distro in my experience that used anything other than bash as the default shell, therefore I haven't even really tried anything else. I don't have any reason to either.

Offline

#6 2005-07-15 23:14:55

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: shell recommendations

I generally stick with bash.


oz

Offline

#7 2005-07-15 23:47:12

Stinky
Member
From: The Colony, TX
Registered: 2004-05-28
Posts: 187

Re: shell recommendations

I stick with bash at home.  However, at work, I write all of my scripts in Korn.  Simply because not all of my servers have Bash installed on them.

Offline

#8 2005-07-16 00:09:24

codergeek42
Member
From: Anaheim, CA (USA)
Registered: 2005-06-03
Posts: 90
Website

Re: shell recommendations

GNU Bash at home and work (CygWin neutral)


~Peter~

Offline

#9 2005-07-16 01:21:31

archdaemon
Member
Registered: 2005-01-27
Posts: 83

Re: shell recommendations

I've used zsh a bit and found it to be a bad tradeoff - a lot of *really* nice features but at the cost of too much complexity and incompatibility. I've also played with csh a bit when I've been in FreeBSD but not for scripting and I ended up making BSD use bash anyway, because it doesn't make sense to me to use one shell for interactive use and another to script. Other than quirky install stuff (Arch uses ash on install, IIRC) I haven't used others.

Bash is the de facto standard and it's good that it's a good shell. A bit of feeping creaturitus but not like zsh and not as frigging *unusable* interactively as sh (oh, yeah, I tried BSD's sh, too.) So, yeah, bash.

Offline

#10 2005-07-16 01:39:35

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: shell recommendations

I use zsh. And contrary to archdaemon, I havnt found it a tradeoff.

It's extra tab completion options and many other features absolutely rock.

iphitus

Offline

#11 2005-07-16 23:31:01

Meshuggin
Member
From: /home/meshuggin
Registered: 2005-03-23
Posts: 137

Re: shell recommendations

Always I've been using BASH, but I'd reallly like to learn some other environment like zsh smile


Arch GNU/Linux 0.7.1 (Noodle)
Linux 2.6.14-archck1

Offline

#12 2005-07-17 06:04:32

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: shell recommendations

i've always just used bash.

Offline

#13 2005-07-17 06:11:20

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: shell recommendations

most people couldnt care less and just use what it comes with.

zsh has little things I like about it, little extra stuff. Like more powerful completion. Sure bash *can* do it, but it takes a ridiculous amount of scripting to do what zsh can do in one line, nor is it as fast.



my zshrc is here:
https://iphitus.no-ip.org/configs/shellrc
https://iphitus.no-ip.org/configs/zshrc
if anyone's interested.

Offline

#14 2005-07-17 15:25:37

max_sipos
Member
From: Ithaca, NY
Registered: 2004-10-31
Posts: 106
Website

Re: shell recommendations

I get 404 errors when I try to access those files smile

Offline

#15 2005-07-17 16:11:32

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: shell recommendations

fixed

Offline

#16 2005-09-01 15:48:15

johnisevil
Member
From: Hamilton, ON Canada
Registered: 2003-08-07
Posts: 221
Website

Re: shell recommendations

iphitus, 404 errors when attempting to access those config files.

Offline

#17 2005-09-02 15:32:26

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Re: shell recommendations

I mainly use bash on my laptop, but I voted tcsh because in, FreeBSD it has some really awesome features. But when I install it on Arch those features are pretty much absent. So I sticked to bash, since I do not have the time to configure my shell properly. Bash is the only shell that comes preconfigured, I guess.

Offline

Board footer

Powered by FluxBB