LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


View Poll Results: Which Is Your Preferred Linux Shell?
bash 88 82.24%
csh 0 0%
dash 2 1.87%
fish 0 0%
korn/ksh 4 3.74%
sh 1 0.93%
tcsh 2 1.87%
zsh 10 9.35%
Voters: 107. You may not vote on this poll

Reply
  Search this Thread
Old 12-20-2013, 08:21 AM   #31
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867Reputation: 4867

Quote:
Originally Posted by ReaperX7 View Post
Bash. Not only is it the best supported shell, but it's also a staple requirement for building or rebuilding a Linux system from the ground up.
I am curious, has anyone ever tried to build LFS with Zsh or any other shell? What where the problems? AFAIK, Zsh is fully compatible to Bash.
 
Old 12-21-2013, 06:30 PM   #32
.....
LQ Newbie
 
Registered: Dec 2013
Posts: 3

Rep: Reputation: 0
blah
 
Old 12-21-2013, 06:43 PM   #33
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233
Bash - but zsh is quite high on my todo list.
 
Old 12-24-2013, 04:28 AM   #34
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
Blog Entries: 31

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Started with csh (naively; I was programming in C so chose it over sh) then -> sh -> POSIX shell -> ksh and pdksh -> bash

No great urge to explore further; bash is widely available and runs quickly enough for what I do with it on the systems I run it on.
 
Old 12-27-2013, 04:47 PM   #35
n-y-c
LQ Newbie
 
Registered: Dec 2013
Posts: 8

Rep: Reputation: Disabled
I guess bash since it is install by default
 
Old 12-27-2013, 05:24 PM   #36
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 491Reputation: 491Reputation: 491Reputation: 491Reputation: 491
I use bash on the terminal because of features, but I write scripts that run with ash because it is faster.
 
Old 12-27-2013, 06:39 PM   #37
n-y-c
LQ Newbie
 
Registered: Dec 2013
Posts: 8

Rep: Reputation: Disabled
I heard of sh, bash, csh, ksh and zsh but I never heard of ash.
 
Old 12-27-2013, 07:20 PM   #38
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 491Reputation: 491Reputation: 491Reputation: 491Reputation: 491
See:
http://en.wikipedia.org/wiki/Almquist_shell
dash is the Debian Almquist Shell, which should be at least as fast as ash.
 
Old 12-28-2013, 08:49 AM   #39
n-y-c
LQ Newbie
 
Registered: Dec 2013
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by metaschima View Post
See:
http://en.wikipedia.org/wiki/Almquist_shell
dash is the Debian Almquist Shell, which should be at least as fast as ash.
Thanks for the link
 
Old 01-03-2014, 02:23 AM   #40
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 18.3+19.3, MX-18, Mandrake
Posts: 4,389

Rep: Reputation: Disabled
bash, but only because it is the default shell in the distribution(s) I use. I wouldn't mind if they switched e.g. to zsh, I'd just learn something new.
 
Old 01-03-2014, 04:51 AM   #41
Soderlund
Member
 
Registered: Aug 2012
Posts: 185

Rep: Reputation: 81
Quote:
Originally Posted by astrogeek View Post
But because I am a Slackware user I have picked up the habit of writing scripts for sh, which I think is worthwhile.
/bin/sh in Slackware supports more features than the original sh. For example you can't use "let", you have to use "expr". But I think you are right and I do it for the same reason. sh is the lowest common denominator (of sh and bash at least -- I haven't tried the other ones).

Is any of those shells in the poll more widely supported than sh?
 
Old 01-03-2014, 06:38 PM   #42
schizophrenia
LQ Newbie
 
Registered: Jan 2014
Distribution: Mageia 3
Posts: 10

Rep: Reputation: Disabled
bash because it is the most popular
 
Old 01-06-2014, 12:57 AM   #43
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 18.3+19.3, MX-18, Mandrake
Posts: 4,389

Rep: Reputation: Disabled
Quote:
Originally Posted by Soderlund View Post
/bin/sh in Slackware supports more features than the original sh...
Is any of those shells in the poll more widely supported than sh?
Umm. As far as I know on SuSE /bin/sh is just a link to the default shell, in this case bash. That's why /bin/sh is the most widespread shell denominator . Is this different with slackware?
 
Old 01-06-2014, 01:08 AM   #44
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_12{.0|.1}
Posts: 5,446
Blog Entries: 11

Rep: Reputation: 3424Reputation: 3424Reputation: 3424Reputation: 3424Reputation: 3424Reputation: 3424Reputation: 3424Reputation: 3424Reputation: 3424Reputation: 3424Reputation: 3424
Quote:
Originally Posted by JZL240I-U View Post
Umm. As far as I know on SuSE /bin/sh is just a link to the default shell, in this case bash. That's why /bin/sh is the most widespread shell denominator . Is this different with slackware?
No, in Slackware sh is a symlink to bash as well.

But, remember too that bash checks how it was invoked, and if it was invoked as sh, it acts pretty much just as if it were sh instead of bash, although there are some exceptions to that.
 
Old 01-06-2014, 01:13 AM   #45
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 18.3+19.3, MX-18, Mandrake
Posts: 4,389

Rep: Reputation: Disabled
Quote:
Originally Posted by astrogeek View Post
...But, remember too that bash checks how it was invoked, and if it was invoked as sh, it acts pretty much just as if it were sh instead of bash...
Yes, I'm aware of that, it is better to be careful when writing portable scripts, the shebang can work differently with either #!/bin/sh or #!/bin/bash ... .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why is ubuntu most preferred Linux distro...??? dEnDrOn Linux - General 97 07-20-2011 11:41 PM
A Preferred Linux OS meant only for FTP Server??? ajeetraina Linux - Server 5 12-04-2007 03:01 PM
Preferred distribution for c and shell programming? Its All in your Head Linux - Distributions 3 07-07-2007 03:37 PM
What is the preferred music/audio player in Linux? M$ISBS Linux - Software 13 04-09-2007 05:57 AM
What is Your Preferred Linux Distro? bongski55 Linux - Distributions 45 11-16-2003 04:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration