Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to migrate scripts from bash to dash? [closed]

I'd like to avoid installing bash on every new Debian 6 install. So I need to convert all my bash scripts to dash.
- How would you do that ?
- What are the differences between the 2 languages ?
- Are you aware of any caveat and pitfall ?
- Is it possible to automate that task ?

like image 373
dugres Avatar asked Jan 21 '11 14:01

dugres


1 Answers

Here is a page that shows some Bashisms. You can use it as a guide for porting from Bash to Dash.

I don't know why you say you need to install Bash. It's listed as an essential package.

like image 62
Dennis Williamson Avatar answered Sep 17 '22 15:09

Dennis Williamson