在 /bin 中,我看到 bash,但没有看到 csh 或 tcsh。当我在我的主目录中创建一个“.cshrc”文件时,它没有效果;这就是我发现这个问题的方式。
所以问题是:如何切换到 csh/tcsh 类型的登录?
谢谢你的帮助。
使用 tcsh shell 时,如何检查文件夹是否不存在?
我可以检查它是否存在
if ( -d /folder ) then
Run Code Online (Sandbox Code Playgroud)
但我希望 if 语句适用于不存在的文件夹。
I tried to do in tcsh the following:
$ echo $(pwd)
Run Code Online (Sandbox Code Playgroud)
It does not work.