代码之家  ›  专栏  ›  技术社区  ›  Elle Fie

在特定目录中启动tcsh

  •  0
  • Elle Fie  · 技术社区  · 6 年前

    tcsh是否支持通过参数在远程目录中启动自己?

    我正在处理的设置不允许我在调用tcsh之前更改到远程目录,我希望避免为此工作流创建.sh文件。

    下面是V6.19的可用参数:

    > tcsh --help                                                                                          
    tcsh 6.19.00 (Astron) 2015-05-21 (x86_64-unknown-Linux) options wide,nls,dl,al,kan,rh,color,filec                                                                  
    
    -b file         batch mode, read and execute commands from 'file' 
    -c command      run 'command' from next argument                  
    -d              load directory stack from '~/.cshdirs'            
    -Dname[=value]  define environment variable `name' to `value' (DomainOS only) 
    -e              exit on any error
    -f              start faster by ignoring the start-up file
    -F              use fork() instead of vfork() when spawning (ConvexOS only)
    -i              interactive, even when input is not from a terminal
    -l              act as a login shell, must be the only option specified
    -m              load the start-up file, whether or not owned by effective user
    -n file         no execute mode, just check syntax of the following `file'
    -q              accept SIGQUIT for running under a debugger
    -s              read commands from standard input
    -t              read one line from standard input
    -v              echo commands after history substitution
    -V              like -v but including commands read from the start-up file
    -x              echo commands immediately before execution
    -X              like -x but including commands read from the start-up file
    --help          print this message and exit
    --version       print the version shell variable and exit
    
    1 回复  |  直到 6 年前
        1
  •  0
  •   Elle Fie    6 年前

    这是可行的,但不是最佳的,因为它启动了两个tcsh实例:

    tcsh -c 'cd /tmp && tcsh'