LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices


Reply
  Search this Thread
Old 02-26-2015, 03:48 PM   #1
100101101
LQ Newbie
 
Registered: Sep 2014
Posts: 8

Rep: Reputation: Disabled
How to remove Bash under Debian.


A new la entry has been added:

How to remove Bash under Debian.

Quote:
Some people were wondering how to say goodbye to bash.
Personal reasons vary from security risks to bloat, or "Just because I can, and I want too."
Only if you are aware of the risks, have decided it is your OS/machine/time anyway, and are hellbent on this action should you continue.
 
Old 02-26-2015, 03:54 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Pardon my asking, but this is helpful how, and to who?

Quote:
WARNING: some programs, packages, features, and who knows what else will be broken by this action.
I do not mean to be impolite, but please reconsider this and do not fill LQ with harmful, pointless and useless "how-to's".

How to bork your system, click here!

How to remove all useful programs, ignore warnings and override safeties, click here!

They serve no purpose.

Last edited by astrogeek; 02-26-2015 at 03:57 PM.
 
Old 02-26-2015, 04:01 PM   #3
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,110
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
I see.

http://vignette1.wikia.nocookie.net/...ricityTest.jpg
 
1 members found this post helpful.
Old 02-26-2015, 04:29 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by 100101101 View Post
Info: I operate as root
I dub thee... Darth Facepalm
 
Old 02-26-2015, 05:35 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I always like these posts.

The Be Operating System was build up from ground up without a shell. Linux can't seem and maybe doesn't really need to get along without a shell.
 
Old 02-26-2015, 05:47 PM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,222

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I just read your howto, and it will probably last until the next time you install or upgrade anything with apt-get.

It's tremendously likely that it will leave a lot of stuff in a nonworking state too.

Quote:
Only if you are aware of the risks
How are you going to be aware of the risks if you don't even look at the list of files that you're changing?

Quote:
Originally Posted by jefro View Post
The Be Operating System was build up from ground up without a shell. Linux can't seem and maybe doesn't really need to get along without a shell.
The howto is intended to replace bash with dash.

Last edited by dugan; 02-26-2015 at 07:53 PM.
 
Old 02-26-2015, 11:45 PM   #7
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Debian already has changed from bash to dash as much as possible.

Ubuntu follows debian.

I think it's a matter of distribution makers. Casual users must not attempt. Else there is chance of not functioning OS.
 
Old 03-04-2015, 01:52 PM   #8
dunne
Member
 
Registered: May 2014
Distribution: OpenBSD
Posts: 67

Rep: Reputation: 36


I sym-linked /bin/sh to /bin/ksh (actually pdksh) years ago. The only thing that broke was ldd, which was easily fixed:

Code:
head -1 /usr/bin/ldd
#! /bin/bash
So it seems that Slackware (or slackware 11.0, at least) can live without bash -- ldd is useful but hardly essential. There are a few other scripts around which explicitly require bash i.e. they have a #!/bin/bash line, but nothing important.

 
Old 03-04-2015, 02:07 PM   #9
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,222

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by dunne View Post
So it seems that Slackware (or slackware 11.0, at least) can live without bash -- ldd is useful but hardly essential. There are a few other scripts around which explicitly require bash i.e. they have a #!/bin/bash line, but nothing important.
You might want to check out this discussion:

Bashism in /etc/rc.d/rc.S
 
Old 03-04-2015, 02:59 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
well there is csh and ksh

but almost every "*.sh" script is pointing to "#!/bin/bash " or "#!/bin/sh "

have fun
 
  


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
how to remove old bash cjashu Ubuntu 3 10-03-2014 03:59 PM
how to remove new line in bash using echo packets Programming 9 11-24-2009 09:00 PM
bash : remove replicator words?, how? Guru Mind Programming 13 05-18-2006 12:24 AM
[bash / sed] remove all data between < > Ljohan Programming 4 03-15-2006 05:20 AM
Using sed in bash to remove whitespace jimieee Programming 3 01-28-2004 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion

All times are GMT -5. The time now is 01:45 AM.

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