开发者

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

开发者 https://www.devze.com 2023-02-06 04:31 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 3 years ago.

Improve this question

I'd like to a开发者_运维技巧void 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 ?


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.


The best strategy is to stick to the standard instead of any particular implementation. Dash is much closer to it than Bash.

You might try Loker to get some assistance. If you are interested in it or have any problems, feel free to bother me by email.

There are some other tools as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消