Tcsh is a shell for Unix-like operating systems and an enhanced, but completely compatible version of the Berkeley UNIX C shell (csh).

learn more… | top users | synonyms

0
votes
0answers
29 views

different interactive and non-interactive shells

A user account has it's shell defined in passwd file as bash. I would like to change this user account's shell to tcsh for non-interactive jobs (like ssh ), but keep interactive shell to bash. Is ...
0
votes
3answers
632 views

Clear tcsh/csh history in FreeBSD 10.0

This is a little embarrassing but I'm unable to delete the root user shell history from a FreeBSD 10.0 server. The root user is using the default csh. I've tried the classic history -c command to ...
0
votes
1answer
65 views

Setting Env Vars in tcsh

Please tell me why I can't set my env var by modifying ~/.profile? [104] whoami user [105]% cat .profile . /app/share/Profile # add any personal customizations after this line set ...
0
votes
1answer
154 views

bash + run command in tcsh from bash

when I run from bash shell the command: bash for i in 1 2 3 ; do echo $i ; done 1 2 3 but when I switch to tcsh and want to run: tcsh bash -c for i in 1 2 3 ; do echo $i ; done i: -c: ...
1
vote
0answers
1k views

How do I autocomplete from a wordlist and filenames in (t)csh?

To give an example everyone knows: Can you provide a csh complete command which allows to autocomplete any argument to ls to be either an option or a filename? Useful documentation here. The ...
0
votes
1answer
594 views

setting the environment variable error

I am trying to set the environmental variable LD_LIBRARY_PATH to the directly i am currently working on. This is the command which i gave. export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH In response, i ...
1
vote
2answers
518 views

How to iterate over a list of files and perform an action on them

I want to write a script (or preferably an alias) that does the following: Find all the files matching a pattern *.jar Iterate over all those files, and run jar tvf <jar file name> | grep ...
1
vote
1answer
737 views

Printing a '$' (dollar sign) to a file

I want to echo/printf a dollar sign into a file - but echo $ > myfile or such does not work (not surprising). I tried escaping it like echo \$ > myfile but it is also not working. What is the ...
0
votes
2answers
85 views

Extracting the 'In real life' value from finger

I want to get a user's real life name based to print during the login script. I'm using currently the following command: finger | grep $LOGNAME | head -1 | awk '{print $2 " " $3}' Is there any ...
0
votes
1answer
284 views

How can I define a variable in a TCSH script that will not be exported to the process which invoked it?

I know that in KSH, if I write export A=B the process which invoked my script can evaluate ${A}, and if I write A=B, then ${A} will have no value outside of my script. How can this be done in TCSH? ...
1
vote
1answer
50 views

Last line in a `tcsh` script does not run

I have a tcsh script that sets aliases during login. It seems like the last line in the file is not executed. If I put a new line after it - it works fine. Example - bad: ... ... ... alias ...
1
vote
1answer
2k views

what does the command `set autolist` do?

Any idea what the autolist argument means? I could'nt find anything about it in the manual.
2
votes
1answer
2k views

What does the command `stty erase ^H` do?

Probably a newby's question - I saw the command stty erase ^H in one of our log-in script and wanted to know what it does. Does it work on TCSH? or is it only applicable to KSH?
0
votes
1answer
199 views

tcsh PATH env variable not respected amazon web services

I've got an Amazon EC2 instance with the 64bit Linux AMI. I changed my shell to tcsh and then set up .tcshrc with PATH = ".:/usr/local/lib/play-1.1:$PATH" After a $ source ~/.tcshrc $ echo $PATH ...
1
vote
4answers
856 views

FreeBSD tcsh and terminal window size

When I'm working on my FreeBSD server's ssh, it always assume that terminal width is 80 columns. E.g. man pages show up in one thin column and all programs that use COLUMNS and LINES environment ...
3
votes
2answers
2k views

How do I change the bg color of chmod 777 directories in tcsh?

On my MacBook Pro, I have iTerm and use the (black background) Pastel color set. World writable directories show up with a yellow background behind grey text. This I can live with, since the grey is ...
10
votes
5answers
9k views

Force SSH to use a specific shell

Is there any way to force SSH to use a particular shell on the remote end, regardless of what the user's default shell is? I've tried solutions akin to: ssh host.domain.com /bin/bash -c ...
2
votes
4answers
668 views

tcsh : path of sourced file

I am sourcing a file under tcsh. This file could be anywhere on the filesystem. How can I retrieve the path of my sourced file ? $0 won't work : I don't execute the file, I source it. Many thanks !
2
votes
2answers
2k views

Recursive cp copies folder contents instead of folder on OS X

In Terminal (using bash and tcsh) cp -r copies the contents of a folder instead of the folder if the folder argument has a / at the end. Given the following structure: folderA |-fileA |-fileB ...