昨晚修改了环境变量后,进行重置服务时
source /etc/profile
报错
[root@localhost etc]# source /etc/profile
-bash: /etc/profile: line 11: syntax error near unexpected token `('
-bash: /etc/profile: line 11: `pathmung e() {
'
报错后,查了一晚上分别试了下面几种方法
文件转义为Unix格式的
# 文件转义为Unix格式的
dos2unix profile
然后用NotePad++查了行位符