升木 发表于 2018-8-28 10:55:52

Week 1 solved question: change environment by shell-11112569

  How to change environment by using a shell?
  e.g.
  For this laboratory we assume you're in the standard C or POSIX locale. The shell command locale should output LC_CTYPE="C" orLC_CTYPE="POSIX". If it doesn't, use the following shell command:
export LC_ALL='C'  If I write a shell that contains this command, it won't work since the child shell only change it's own environment.
  I need to use:
  . ./shellnameor
  source ./shellname


页: [1]
查看完整版本: Week 1 solved question: change environment by shell-11112569