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, tcsh -c 'set globstar' won't work as it won't leave the interactive shell. Exits immediately after executing the command.
I need it to run a script on a remote machine where I can not modify any rc files
Assume the script is as below
      0 > cat run
      echo foo/**
With bash I can do the following
      0 > bash -O globstar run
      foo/ foo/bar foo/bar/foo foo/bar/foo/bar
I am looking for a tcsh equivalent, something like below (it obviously won't work as tcsh will not run my program)
       0 > tcsh -c 'set globstar' run
PS: I know bash -c is same as tcsh -c. I am looking for an equivalent of bash -O even if it is for limited options.
PS: This is simply tcsh version of the following question.
run bash command in new shell and stay in new shell after this command executes
 
    