首页 > TAG信息列表 > pathmunge

BASH: RHEL系pathmunge函数

  pathmunge函数是RHEL系/etc/profile中定义的一个函数, 用来添加路径到PATH环境变量中, 在/etc/profile最后使用unset -f pathmunge取消了函数定义, 故shell中没有此函数定义     第一版: pathmunge() { if ! echo $PATH | grep -qE "(^|:)$1($|:)"; then if [ "$2" =