文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Bourne Shell 中的 set命令

Bourne Shell 中的 set命令

时间:2008-09-04  来源:cuteorange

         -a       Mark variables which are  modified  or  created
                  for export.

         -e       Exit immediately if  a  command  exits  with  a
                  non-zero exit status.

         -f       Disable file name generation.

         -h       Locate and remember function commands as  func-
                  tions  are  defined (function commands are nor-
                  mally located when the function is executed).

         -k       All  keyword  arguments  are  placed   in   the
                  environment  for a command, not just those that
                  precede the command name.

         -n       Read commands but do not execute them.

         -t       Exit after reading and executing one command.

         -u       Treat unset variables as an error when  substi-
                  tuting.
         -v       Print shell input lines as they are read.

         -x       Print commands and their arguments as they  are
                  executed.

         -        Do not change any of the flags; useful in  set-
                  ting $1 to -.
         Using + rather than - causes these flags  to  be  turned
         off. These flags can also be used upon invocation of the
         shell. The current set of flags may be found in $-.  The
         remaining  arguments  are  positional parameters and are
         assigned, in order, to $1, $2, ... If no  arguments  are
         given, the values of all names are printed.
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载