Linux Error: syntax error "C" Workaround (Select Bash system here)

Source: Internet
Author: User

This problem occurs because of system compatibility, where Linux defaults to dash rather than bash.

Linux Dash Change bash:

1. First check which Shell is used

Ls-al/bin/sh

2. #如果是Dash可以用以下方法切回bash (select No)

Method One: sudo dpkg-reconfigure dash

Method Two: sudo ln-fs/bin/bash/bin/sh

(Thanks to the other seniors, this is the previous search from the internet, self-made notes, self-organized, as my growth path experience, writing this blog is to record their own problems, such as errors or similarities with others please understand)

Linux Error: syntax error "C" Workaround (Select Bash system here)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.