LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 25;CentOS 7; Kubuntu; Debian
Posts: 860

Rep: Reputation: 37
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
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:03 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