You are not logged in.

#1 2009-08-09 13:32:22

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

[Solved] ZSH , and BASH config file's.

Hello
For quite time I want to try zsh shell.
I think why not it's faster , compatible with bash and have adventages over bash (I read wiki page).
And here's my queston after configuration of zsh and using it I can delate bash package and evry bash file?
Thanks for answers wink

Last edited by SpeedVin (2009-08-09 14:04:26)


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#2 2009-08-09 13:52:30

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: [Solved] ZSH , and BASH config file's.

SpeedVin wrote:

Hello
For quite time I want to try zsh shell.
I think why not it's faster , compatible with bash and have adventages over bash (I read wiki page).
And here's my queston after configuration of zsh and using it I can delate bash package and evry bash file?
Thanks for answers wink

No! Arch linux uses bash to run all of its scripts. You would not be able to boot.

Changing your login shell is not the same thing as changing sh.


Cthulhu For President!

Offline

#3 2009-08-09 14:04:10

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] ZSH , and BASH config file's.

buttons wrote:
SpeedVin wrote:

Hello
For quite time I want to try zsh shell.
I think why not it's faster , compatible with bash and have adventages over bash (I read wiki page).
And here's my queston after configuration of zsh and using it I can delate bash package and evry bash file?
Thanks for answers wink

No! Arch linux uses bash to run all of its scripts. You would not be able to boot.

Changing your login shell is not the same thing as changing sh.

Ok thanks for answer I will stay with Bash wink

Last edited by SpeedVin (2009-08-09 14:19:29)


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#4 2009-08-09 14:19:05

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] ZSH , and BASH config file's.

buttons wrote:
SpeedVin wrote:

Hello
For quite time I want to try zsh shell.
I think why not it's faster , compatible with bash and have adventages over bash (I read wiki page).
And here's my queston after configuration of zsh and using it I can delate bash package and evry bash file?
Thanks for answers wink

No! Arch linux uses bash to run all of its scripts. You would not be able to boot.

Changing your login shell is not the same thing as changing sh.

But I have next question what if I modife initscript's rc.local,shutdown and other to use zsh (change #!/bin/bash to #!/bin/zsh)?


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#5 2009-08-09 15:12:16

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [Solved] ZSH , and BASH config file's.

Bash and zsh aren't completely compatible, you'll most probably run into trouble. Booting will also be slower because zsh starts slower then bash (due to the shell being bigger, it has a lot more features).

Offline

#6 2009-08-09 15:12:21

rine
Member
From: Germany
Registered: 2008-03-04
Posts: 217

Re: [Solved] ZSH , and BASH config file's.

SpeedVin wrote:
buttons wrote:
SpeedVin wrote:

Hello
For quite time I want to try zsh shell.
I think why not it's faster , compatible with bash and have adventages over bash (I read wiki page).
And here's my queston after configuration of zsh and using it I can delate bash package and evry bash file?
Thanks for answers wink

No! Arch linux uses bash to run all of its scripts. You would not be able to boot.

Changing your login shell is not the same thing as changing sh.

But I have next question what if I modife initscript's rc.local,shutdown and other to use zsh (change #!/bin/bash to #!/bin/zsh)?

I wouldn't recommend that. bash and zsh aren't 100% compatible.

I'm just asking myself why you would want to remove bash. You can switch to zsh completely for every imaginable use but still let bash there for scripts that have #!/bin/bash. It's just a few MB on your hard disk, shouldn't be a problem.

Offline

#7 2009-08-09 15:13:36

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [Solved] ZSH , and BASH config file's.

rine wrote:

You can switch to zsh completely for every imaginable use but still let bash there for scripts that have #!/bin/bash. It's just a few MB on your hard disk, shouldn't be a problem.

That and bash is faster for interpreting scripts.

Offline

#8 2009-08-09 15:17:09

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] ZSH , and BASH config file's.

rine wrote:
SpeedVin wrote:
buttons wrote:

No! Arch linux uses bash to run all of its scripts. You would not be able to boot.

Changing your login shell is not the same thing as changing sh.

But I have next question what if I modife initscript's rc.local,shutdown and other to use zsh (change #!/bin/bash to #!/bin/zsh)?

I wouldn't recommend that. bash and zsh aren't 100% compatible.

I'm just asking myself why you would want to remove bash. You can switch to zsh completely for every imaginable use but still let bash there for scripts that have #!/bin/bash. It's just a few MB on your hard disk, shouldn't be a problem.

Hmm I just install apps like that:
One app for one thing wink

Last edited by SpeedVin (2009-08-09 15:17:27)


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#9 2009-08-09 17:07:08

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

Re: [Solved] ZSH , and BASH config file's.

Ramses de Norre wrote:
rine wrote:

You can switch to zsh completely for every imaginable use but still let bash there for scripts that have #!/bin/bash. It's just a few MB on your hard disk, shouldn't be a problem.

That and bash is faster for interpreting scripts.

Prove it!

I said the above jokingly, but do you have links to any benchmarks?


(lambda ())

Offline

#10 2009-08-09 18:55:45

rine
Member
From: Germany
Registered: 2008-03-04
Posts: 217

Re: [Solved] ZSH , and BASH config file's.

SpeedVin wrote:
rine wrote:
SpeedVin wrote:

But I have next question what if I modife initscript's rc.local,shutdown and other to use zsh (change #!/bin/bash to #!/bin/zsh)?

I wouldn't recommend that. bash and zsh aren't 100% compatible.

I'm just asking myself why you would want to remove bash. You can switch to zsh completely for every imaginable use but still let bash there for scripts that have #!/bin/bash. It's just a few MB on your hard disk, shouldn't be a problem.

Hmm I just install apps like that:
One app for one thing wink

It's not only an app but also a scripting language. You wouldn't remove perl just because you use python, right?

Offline

#11 2009-08-09 20:08:15

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] ZSH , and BASH config file's.

rine wrote:
SpeedVin wrote:
rine wrote:

I wouldn't recommend that. bash and zsh aren't 100% compatible.

I'm just asking myself why you would want to remove bash. You can switch to zsh completely for every imaginable use but still let bash there for scripts that have #!/bin/bash. It's just a few MB on your hard disk, shouldn't be a problem.

Hmm I just install apps like that:
One app for one thing wink

It's not only an app but also a scripting language. You wouldn't remove perl just because you use python, right?

I know thanks I think anyway I will try zsh smile


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

Board footer

Powered by FluxBB