how to source csh script from bash environment? - Ask Ubuntu The shebang line already takes care of that for you When you run a script that has #! bin csh -f as first line, the system will recognize #! part as script, and load whatever interpreter is specified after it (in this case bin csh) Alternatively, you could call the interpreter explicitly , with csh path to script csh Here's a small demo
command line - No csh or tcsh? - Ask Ubuntu and you can use csh on command line to start it Same for tcsh (is in Universe): sudo apt-get install tcsh and you can use tcsh on command line to start it By the way had you typed csh in command line you would have seen: csh The program 'csh' can be found in the following packages: * csh * tcsh Try: sudo apt-get install <selected package>
How I can Install csh as a non-root user? - Ask Ubuntu I noticed some things about what you did There is an easier way to get this installed you can simply install csh by going to your terminal Then type sudo apt-get install csh To make your csh a default option on boot type in a terminal which csh To enter into csh terminal just go to the regular terminal and input csh From a how to web site
bash - Can I pass arguments to an alias command? - Ask Ubuntu In (t)csh, "\!*" references arguments to an alias (the backslash is just to escape the exclamation mark which normally means "history"), and you can even reference individual arguments, though I don't remember how So perhaps "tail -n \!*" or something (I don't think \!* will work with a minus sign immediately before it)
How do I set a variable to a commands output in csh? In order to set variable in csh you need to use set As mentioned by @muru comment - The original Bourne shell, csh or tcsh all do not support $() and require ` ` for command substitution Combine the above two and you'll get:
How do I check which shell I am using? - Ask Ubuntu I read that terminal is nothing but shell, and Unix provides different flavors of shells: Bourne shell (sh) C shell (csh) TC shell (tcsh) Korn shell (ksh) Bourne Again shell (bash) Questions: When
Why do I get a cannot execute csh. . . error when I try to sudo su? It seems you are using csh shell as your root login shell So you can either install the missing shell using @izx answer Or just change the default login shell of your root to a valid, installed login shell You can change the login shell of the root with command: sudo chsh -s bin bash root So now bash will become the login shell of root
How to auto complete like CSH when using ZSH (prefix ↑) When using zsh how could I auto-complete like csh, for example, having this history: 9994 vim bar 9995 git add 9996 git commit -am "test " 9997 ssh 10 1 2 3 9998 ls 9999 vim foo In csh if I type: git ↑ It will auto-complete with: git commit -am "test " If I presss arrow up again ↑ it auto-completes with git add
csh - Problem in awk command - Ask Ubuntu I suggest you read Tom Christiansen's great essay Csh Programming Considered Harmful to understand why this should be avoided Csh is fine as a shell, but really shouldn't be used for scripting Csh is fine as a shell, but really shouldn't be used for scripting