I was reading the article about using zsh instead of bash from the Home page. What do you think about that?
Announcement
Collapse
No announcement yet.
zsh
Collapse
This topic is closed.
X
X
-
-
Re: zsh
Although zsh is a very nice shell (I use it myself) it's always good to learn how to use bash effectively as well (since it's the de facto standard in the linux world)Originally posted by txHarleyManWhat do you think about that?
And, as UR pointed out, there might be some incompatibility issues with dash (which is run when sh is called in kubuntu...by default). The same goes with bash though, so if your scripts won't work, you should first check which shell it's running on.
Incompatibility issues should be relatively rare though, since most scripts are made Bourne compatible (sh).
(Tip:Remember to use #!/bin/bash and #!/bin/zsh in your scripts if you're doing someting fancy...that is, non sh compatible)
- Top
- Bottom
Comment
-
Re: zsh
The login/interactive shells are still bash by defaultOriginally posted by txHarleyManBut whats the logic behind Dash when the standard is bash?
Understandable, it's a shell jungle out there :PI get confused easily...
As for using dash by default, you're theoretically saving time/resources/whales each time an sh script is run in the background (like cronjobs etc.). Most maintenance scripts are Bourne compatible so they don't need the fancy interaction of more advanced shells.
The pitfall is of course that many people assume /bin/sh links to bash (as it does on many distributions) and use #!/bin/sh in their bash scripts, which can lead to problems.
It is debatable whether the 'benefits' overweigh the 'costs'...and everyone is free to form their own opinion
Originally posted by UnicornRiderIt's more like "5 seconds won from rebooting, 5 days lost to recoding", I'd say ... nerd's humor

I think it's the special kind of laziness common to sysadmins that enables them to spend a week coding for something that will save a minute a week in the future...it'll start to pay back in roughly 200 years, well worth the wait.
- Top
- Bottom
Comment
-
Re: zsh
Debian default:Originally posted by txHarleyManConfusion setting in again
Ubuntu default:Code:# ls -l /bin/sh /bin/sh -> /bin/bash
(further rantingCode:# ls -l /bin/sh /bin/sh -> /bin/dash
)
- Top
- Bottom
Comment
Users Viewing This Topic
Collapse
There are 0 users viewing this topic.



Comment