【问题标题】:why might the "exit" command in a linux shell not work?为什么 linux shell 中的“exit”命令不起作用?
【发布时间】:2018-09-05 20:34:51
【问题描述】:

我有一个用户在运行一个 csh 脚本时挂起,该脚本没有“退出”...

# This is the x.csh script
exit

然后他……

tcsh x.csh

挂了。

"which exit" 给出"exit: shell 内置命令。"

有什么想法吗?

【问题讨论】:

  • 我无法按照说明重现此内容。 tcsh x.csh 立即退出。 which exit 也说 shell built-in command
  • 也许他有exit的别名。
  • 也许他有tcsh的别名!

标签: linux csh tcsh


【解决方案1】:

.history 文件已损坏。删除后,它按预期工作。

【讨论】:

    最近更新 更多