0
How can I execute a pre-command in a new tcsh interactive shell?
Ex: For mimicking bash -O globstar
in tcsh we can do set globstar
.
However, I need to start a new tcsh
shell with 'set globstar' without depending on / changing the user's rcfile
.
tcsh -c 'set globstar
won't work as it won't leave the interactive shell. Exits immediately after executing the command.
I was wondering if
tcsh
has some sort of inbuilt support for it. Thank you for pointing outexpect
@kamil-maciorowski. – Krishna – 2018-09-23T05:38:33.667