Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-05-2008, 05:17 PM   #1
Registered: Oct 2004
Location: USA
Distribution: Fedora 22;CentOS 7; Kubuntu; Debian
Posts: 790

Rep: Reputation: 34
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. ( )

zsh mostly seemed to bring up

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?

Old 02-05-2008, 07:42 PM   #2
Senior Member
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,487

Rep: Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627Reputation: 627
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.



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 08:58 PM.

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