Home > Blockchain >  The bootstrap. Sh script errors
The bootstrap. Sh script errors

Time:09-21


Today run on Ubuntu 16.04 some script, always report a line "Syntax error:" (" unexpected (expecting "fi") "error,

Checked the script found no errors, said after a search may be sh link problems,

First of all to/bin/check the link below: ls -l/bin/sh

Find sh default is to point to the dash, according to the end of the article reference the method modified in the article links, seem to have no effect,

After the search found the dash and bash is different (has been regarded the dash as bash!! ), then the bash or this is the dash, Ubuntu installation defaults to using the dash, it is said that the dash fast than bash is small in size, but the normal operation of the sh under bash script to run under the dash tend to have a problem, and the errors of fuzzy, illustrate the dash compatible seems to have problems,

To circumvent the problem, that is, to reconfigure the dash:

sudo DPKG to reconfigure the dash

Will pop up to reconfigure the dash interface, and select "no" do not use the dash,

Resources:

http://www.linuxidc.com/Linux/2012-03/57493.htm

  • Related