LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-05-2008, 05:17 PM   #1
DJOtaku
Member
 
Registered: Oct 2004
Location: USA
Distribution: Fedora 20; Arch; Kubuntu; Debian
Posts: 710

Rep: Reputation: 31
pitfalls in switching shells?


AKA Gatchas that you wished you knew before switching shells.

Lately I've been hearing a lot of great stuff about zsh and fish (the latter just got mentioned on LugRadio), but like most I've only used bash on my Linux computers and tcsh on my FreeBSD boxen. I searched in here for fish and zsh. The fish search mostly brought up topics about food and this poll. ( http://www.linuxquestions.org/questi...highlight=fish )

zsh mostly seemed to bring up http://www.linuxquestions.org/questi...?highlight=zsh

which was useful and answered one of the questions I was going to verify. (Will the old bash scripts work - yes, as I suspected, since usually one writes #!/bin/bash at the top).

However are there any pitfalls/gotchas involved in changing shells? Anything I need to be careful of in the process of doing it or afterwards?

Thanks!
 
Old 02-05-2008, 07:42 PM   #2
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,164

Rep: Reputation: 506Reputation: 506Reputation: 506Reputation: 506Reputation: 506Reputation: 506
There *are* differences between shells... expect anything to happen.

However you are *not* installing different shells. You simply run shells. At every moment you can type "zsh" and then you have a zch instead of bash.

On Debian systems (maybe others as well) there is link in /bin/sh which points to /bin/bash. If you set that link to /bin/zsh, all scripts with the shebang /bin/sh will be executed with /bin/sh. Everything with the shebang /bin/bash will be executed with bash.

In /etc/passwd the shell to open is also specified as /bin/sh. Meaning that if you change the symlink, you'll be using zsh from now on.

It is all a matter of mentioning what you want, there is not installation and reverting to bash is nothing more than renaming a symlink.

jlinkels
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suggestions on avoiding installation pitfalls? nowhere.elysium Linux - Laptop and Netbook 2 11-25-2006 07:19 AM
trying to understand 'sudoers' and its potential pitfalls nass Linux - Security 1 04-28-2006 11:56 PM
As of Kernel 2.6 Pitfalls & Work arounds NightSky Slackware 1 01-03-2006 10:49 AM
Avoiding pitfalls... tracedroute Slackware - Installation 6 05-09-2004 04:54 PM
Which version? Pitfalls? Advice? frizzo Linux - Laptop and Netbook 2 01-22-2004 08:57 AM


All times are GMT -5. The time now is 09:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration