The reason why the shell script in ubuntu12.04 cannot use source and the solution to
execute the command: source ./.bashrc prompt error message:
-sh: 27: source: not found
Reason: ls -l `which sh` prompts /bin/sh - > dash
This shows that dash is used for parsing.
Change back method:
command line execution: sudo dpkg-reconfigure dash
in the interface, select no
and then ls -l `which sh` prompts /bin/sh -> bash
to modify successfully, the source can be used ~
Note: It is best to log in again Execute the source command again
-sh: 27: source: not found
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=327041254&siteId=291194637
Ranking