免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2848 | 回复: 4
打印 上一主题 下一主题

登陆时-bash: pathmunge: command not found谁见过? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-08-11 21:37 |只看该作者 |倒序浏览
Last login: Wed Aug 10 08:43:00 2005 from 172.16.198.53
-bash: pathmunge: command not found
-bash: pathmunge: command not found
-bash: pathmunge: command not found
-bash: pathmunge: command not found

如何解决呢?

论坛徽章:
0
2 [报告]
发表于 2005-08-11 23:38 |只看该作者

登陆时-bash: pathmunge: command not found谁见过?

看看你的.bash_profile里边是不是有什么东西

论坛徽章:
0
3 [报告]
发表于 2005-08-12 00:42 |只看该作者

登陆时-bash: pathmunge: command not found谁见过?

pathmunge是/etc/profile下定义的一个路径处理函数:
pathmunge () {
        if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
           if [ "$2" = "after" ] ; then
              PATH=$PATH:$1
           else
              PATH=$1:$PATH
           fi
        fi
}

你查查你系统里有没有/bin/egrep

论坛徽章:
0
4 [报告]
发表于 2005-08-12 08:43 |只看该作者

登陆时-bash: pathmunge: command not found谁见过?

原帖由 "bingosek"]"after"  发表:
; then
              PATH=$PATH1
           else
              PATH=$1PATH
           fi
        fi
}

你查查你系统里有没有/bin/egrep


[root@eureka root]# ls /bin/egrep
/bin/egrep

有的,怎么还有这个提示呢?

论坛徽章:
0
5 [报告]
发表于 2005-08-12 08:48 |只看该作者

登陆时-bash: pathmunge: command not found谁见过?

[quote]原帖由 "blue_stone"]看看你的.bash_profile里边是不是有什么东西[/quote 发表:


[root@eureka root]# more /root/.bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATHHOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"

ulimit -n 8192

export USERNAME BASH_ENV PATH

跟另外一台机器完全一样的这个配置文件,那台机器没有这个烦人的提示。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP