无意间发现Ubuntu的sh默认是指向dash。网上查了一下发现,dash的民意不如bash,据部分网友反映如果用dash编译某些文件,会出现无法编译的情况,但用bash则不会。有些情况下,在脚本中,将#!/bin/bash简写成#!/bin/sh,这个时候用dash编译就会出错了。
不管用dash是不是会提高开机速度或者其他什么原因,我先试一下把sh指向bash
首先,在终端敲入ls -l /bin/sh,出现
lrwxrwxrwx 1 root root 4 2009-08-13 19:31 /bin/sh -> dash
|
在root下敲入
会弹出对话框,选“否”,则切换成功
The default /bin/sh shell on Debian and Debian-based systems is bash.
However, since the default shell is required to be POSIX-compliant, any shell that conforms to POSIX, such as dash, can serve as /bin/sh. You may wish to do this because dash is faster and smaller than bash.
Install dash as /bin/sh?
<是> <否>
|
阅读(2467) | 评论(0) | 转发(0) |