LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 08-04-2009, 03:53 AM   #31
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55

Quote:
Originally Posted by vikas027 View Post
Your login name is appropriate... CompletelyClueless.

Request you to get some clues and then google it. I have around 3 years of experience in shell scripting, did not find any harm in it.
I suppose you wouldn't trade your horse for a car, given that people have been able to get where they're going no problem for hundreds (thousands?) of years on them. I also suppose you won't be upgrading your kernel ever, since your current one is working fine. If you're going to insist on bash, at least have a reason, rather than 'because it's what I've always used'.

Also, zsh has come up a few times in this thread - massive recommendations for anyone who's not smitten with bash. By default, zsh is a much heavier (by shell standards), slightly superior shell. With a good, customized .zshrc, you'll cringe every time you're forced to use bash, even if it's only just to get off a chsh.
 
Old 08-04-2009, 05:03 AM   #32
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by karamarisan View Post
I suppose you wouldn't trade your horse for a car, given that people have been able to get where they're going no problem for hundreds (thousands?) of years on them. I also suppose you won't be upgrading your kernel ever, since your current one is working fine. If you're going to insist on bash, at least have a reason, rather than 'because it's what I've always used'.

Also, zsh has come up a few times in this thread - massive recommendations for anyone who's not smitten with bash. By default, zsh is a much heavier (by shell standards), slightly superior shell. With a good, customized .zshrc, you'll cringe every time you're forced to use bash, even if it's only just to get off a chsh.
I believe you have missed out the topic of the thread. "Is Bash crap?".

You are right, I have never upgraded kernel drivers. But that DOES NOT mean, bash shell is crap. Bash shell may not be apt for "certain particular advanced things", but calling it kludge+crap is mean. Rather, it would be better to post its authors about the limitations.

INMHO I DO NOT feel to give reason because I and many more posters of this thread are satisfied with bash. And till now I have accomplished my needs with bash. We would love to explore other shells like zsh,ksh etc. But not for the reason of this "crap shell".

All this is my perspective.
 
Old 08-04-2009, 05:30 AM   #33
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
No, I saw it. I'm not saying bash is crap, but it doesn't have to be objectively bad for it to be worth replacing. (For the record, I think bash is solid, but obsoleted. You can probably guess what by.) Don't be a dinosaur, man; give new software a chance and you'll like what you get.

Code:
You are right, I have never upgraded kernel drivers.
Er, I hope that's not true or I'm misunderstanding you. If you don't upgrade your kernel, you are sitting on a pile of vulnerabilities that anyone can google up. This isn't a matter of whether it's worth switching to something new; it's just basic good practice.
 
Old 08-04-2009, 05:38 AM   #34
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Smile

Quote:
Originally Posted by karamarisan View Post
Don't be a dinosaur, man; give new software a chance and you'll like what you get.
I am little human , ready to explore new things BUT at the same time not criticizing the present.


Quote:
Originally Posted by karamarisan View Post
Code:
You are right, I have never upgraded kernel drivers.
Er, I hope that's not true or I'm misunderstanding you. If you don't upgrade your kernel, you are sitting on a pile of vulnerabilities that anyone can google up. This isn't a matter of whether it's worth switching to something new; it's just basic good practice.
By upgrading, I mean I have never written kernel codes or tried modifying them.
 
Old 08-04-2009, 05:53 AM   #35
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
Then I highly, highly recommend you check this out. Trying a new shell is a particularly harmless thing, but don't try it on a work machine if you want to be super safe about it. Three bits I'll try to sell you on, plus what is probably the big one:
1. Do you know that ** glob that bash has as of version 4? zsh has had that for as long as I can remember. (If you don't, it matches all files, directories, and the contents of all those directories recursively. I used it today as `~/music/**/*.mp3 piped to wc to count my mp3 files.`)
2. zsh will correct your typos. Not automatically, of course, as that would be dangerous, but fixing a small typo can consist of pressing 'y' to fix it instead of having to go up and fix it yourself.
3. Not everyone who uses zsh uses this, but I can't imagine why not - a right prompt. In my case, I put pwd in there instead of the normal prompt. The effect is that my regular prompt is fixed-width, long paths grow from the right, where there's tons of space, and the first character that would be impeded by the right prompt causes it to temporarily disappear until you get your prompt back.
And 4. zsh's autocompletion just wipes the floor with everything else I've ever seen. It completes ssh. It completes a few thousand commands (including options) or something out of the box, and you can program more. It completes on remote filesystems if you have passwordless public key set up.
I'll stop there because I could gush about zsh all day if you let me. Suffice to say that there's bread and cheese on your side of the wall, sure, but we're eating ice cream for dinner everyday, and somehow it never gets old.

Quote:
By upgrading, I mean I have never written kernel codes or tried modifying them.
No problem, then. I was merely making a comparison between not switching to the best shell you have available to you and not upgrading your kernel, if 'because this works' is to be taken as a good reason. Incidentally, I haven't uninstalled bash or anything - sh is still a link to bash because zsh takes a lot longer (again, in shell terms - I get a prompt instantly when I open a new terminal) to start up, and you don't need it to run init scripts.

Last edited by karamarisan; 08-04-2009 at 05:54 AM.
 
Old 08-04-2009, 05:55 AM   #36
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Original Poster
Rep: Reputation: 70
Wink

Quote:
Originally Posted by vikas027 View Post
Bash shell may not be apt for "certain particular advanced things", but calling it kludge+crap is mean.
I agree. Which is why I retracted the remark and apologized further on up the thread. I was happy to be disabused of my ignorance and modified my views once informed of Bash's origins and development.
Some folks here have been pretty helpful in suggesting alternative shells; in particular the Z shell sounds very promising. Hopefully one day it'll replace Bash as the default for the bulk of Linux distros. Bash isn't "crap" - I now freely admit - but it's rather limited compared to some of the alternatives.
 
Old 08-04-2009, 08:07 AM   #37
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Rep: Reputation: 42
Is the Bourne shell on Linux, free, the actual shell, the full shell exactly how it is on UNIX? I've read about sh being like it, and that there are things you can do to use the POSIX features of the shells ... but how similar are they, really?
(I apologize if this is a Google question.)
 
Old 08-04-2009, 08:43 AM   #38
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
While better shells have come along, I've stuck to what is available as standard so my scripts and skills are portable -- beginning with Bourne (althoug ksh was way better), then ksh, then POSIX and now bash.

I learned that lesson hard as a contractor when I'd got used to the delights of emacs, especially as a development editor, then worked at a site where they didn't have it and wouldn't install it :-( Since then I've stuck to vi -- "good enough" and (almost!) universally available.

Come to think of it, that's a good reason for choosing bash shellscript over other programming languages -- it will run on any Linux system. It has to -- because half of Linux is written in it!
 
Old 08-04-2009, 08:46 AM   #39
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Hello Joe
Quote:
Originally Posted by joeBuffer View Post
Is the Bourne shell on Linux, free, the actual shell, the full shell exactly how it is on UNIX? I've read about sh being like it, and that there are things you can do to use the POSIX features of the shells ... but how similar are they, really?
(I apologize if this is a Google question.)
If bash' POSIX mode is turned on then it is (OEE), exactly the same as any other POSIX conforming shell. The Bourne shell is a long way from POSIX compliance; a lot of the inspiration for the POSIX shell standard was the Korn shell, ksh, and it was quite a jump from Bourne to Korn.
 
Old 08-04-2009, 08:48 AM   #40
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Rep: Reputation: 42
I apologize for what's probably a simple question, I've just read that sh is the Bourne shell, but was confused as to whether or not it's "pretty much the Bourne shell".
 
Old 08-04-2009, 09:09 AM   #41
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
I believe 'ash' is a clone of the Bourne shell. 'sh' is often a symbolic link to one of the other shells on most linux distros.

Last edited by GazL; 08-04-2009 at 09:11 AM.
 
Old 08-04-2009, 09:50 AM   #42
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
ash is lightweight bash and is often used to run startup scripts (faster than bash).
Yep, sh is often a symbolic link that exists mainly to ensure compatibility with scripts that require the original bourne shell.
 
Old 08-04-2009, 10:16 AM   #43
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Original Poster
Rep: Reputation: 70
Quote:
Originally Posted by jay73 View Post
ash is lightweight bash and is often used to run startup scripts (faster than bash).
Yep, sh is often a symbolic link that exists mainly to ensure compatibility with scripts that require the original bourne shell.
ISTR there's also a dash as well. A lightweight shell for Debian based systems. er, I think.
 
Old 08-04-2009, 10:20 AM   #44
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 899

Original Poster
Rep: Reputation: 70
Quote:
Originally Posted by catkin View Post
I learned that lesson hard as a contractor when I'd got used to the delights of emacs, especially as a development editor, then worked at a site where they didn't have it and wouldn't install it :-( Since then I've stuck to vi -- "good enough" and (almost!) universally available.
I was about to say I can't understand people like yourself who use these counter-intuitive editors that take a month of sundays to learn. But then I thought if you've been in the industry for like 40 years, it might just be what you've grown used to. Personally I never use anything but nano. It's great. Nice and simple.
 
Old 08-04-2009, 10:24 AM   #45
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 328

Rep: Reputation: 42
I always use vim, but I've never really tried emacs. It seems bloated to me. Vim is very complete and seems more to-the-point as an editor. I don't have a good opinion, though, since I haven't really used emacs.
Nano is good, but very simple.
 
  


Closed Thread



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
This is crap ... orange400 SUSE / openSUSE 2 01-02-2005 04:14 PM
OH CRAP!!! (/me needs help) Sticktendo Linux - Newbie 5 01-01-2005 04:41 PM
Ah Crap...come on now!!! GmAz Mandriva 7 11-14-2004 11:30 AM
Linspire = Crap, Netzero also = Crap rm6990 General 16 09-20-2004 02:35 AM
Uh.....crap toolshed Linux - General 1 08-18-2001 11:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:44 AM.

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