LightenPan / msys-cn

Automatically exported from code.google.com/p/msys-cn
0 stars 0 forks source link

复用一部分代码 #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
文件/etc/profile

在原版的文件中有段代码是 
for i in /etc/profile.d/*.sh ; do
  if [ -f $i ]; then
    . $i
  fi  
done

在msys-cn版本中是
# Initialize extra packages
for i in /etc/mpkg/*.sh; do
        if [ -f $i ]; then
                . $i
        fi
done

为什么不复用原来的代码,是兼容性更强点呢

Original issue reported on code.google.com by guanlisheng on 7 Apr 2009 at 6:56

GoogleCodeExporter commented 9 years ago
这个profile是自己从头开始写的,没有参用原来的profile,所以
没有考虑到过多的兼容性问
题,只是从最小化主义的思路让一切保持简单 :P

也可以用原版的稍作修改使用

Original comment by codemastor@gmail.com on 7 Apr 2009 at 10:44

GoogleCodeExporter commented 9 years ago

Original comment by codemastor@gmail.com on 7 Apr 2009 at 10:45

GoogleCodeExporter commented 9 years ago

Original comment by codemastor@gmail.com on 15 May 2009 at 10:22