Tiny Core Extensions > TCE Q&A Forum

where did bash go?

(1/1)

fidolo:
First I have to say that I am delighted with TC:   The hard drive in my old laptop died, and add the drives today are SATA, so they won't plug into the old mini-IDE socket, and it started to look like a dead drive meant a dead laptop!     Luckily I found an adaptor of the same size as the 2.5" drive, which interfaces a flash card to the mini-IDE, (these things are still out there, apparently increasingly hard to find), and now my laptop runs faster than ever with tiny core on the 4GB fast flash card, a real delight!

My question is about bash having mysteriously disappeared from my system.   After installing a few packages I added some of my own scripts, with the #!/bin/bash shebang, and they were all working fine.   After removing some of the packages, the scripts did not work anymore, until I changed the shebang to #!/bin/sh.   Did I make some mistake that would have disturbed other things beyond the shell?   What made bash go away in the first place?

Rich:
Hi fidolo
When removing applications, AppsAudit is the correct tool to use. However, it pays to look at what dependencies
it is removing. If you removed an app that depended on bash.tcz, and none of the other installed apps depends
on it, bash is removed. Even though bash can be used by itself, AppsBrowser doesn't know that.
If you don't need something that is specific to bash, ash is built in.

fidolo:
Thank you Rich.   I can see now that bash is optional, and I probably won't miss it since busybox seems to do everything I'm likely to need.

tinypoodle:

--- Quote from: fidolo on April 07, 2012, 02:42:13 PM ---After removing some of the packages, the scripts did not work anymore, until I changed the shebang to #!/bin/sh.

--- End quote ---
If they run fine after that, it is most likely the header was wrong in the first place.   ;)

fidolo:
Thanks.  That's precisely what it turned out to be.   After bash was removed as a dependency of some uninstalled package, the scripts no longer request an available shell.  I just did not know that a linux OS could possibly run without bash.   Playing with TC, I learn more than I had before, using the big linuces.   :)

Navigation

[0] Message Index

Go to full version