Questions tagged [tcsh]

Tcsh is an enhanced, but completely compatible version of the Berkeley UNIX C shell (csh). It is a command language interpreter usable both as an interactive login shell and a shell script command processor.

Tcsh is an enhanced, but completely compatible version of the Berkeley UNIX C shell (csh). It is a command language interpreter usable both as an interactive login shell and a shell script command processor. It includes a command-line editor, programmable word completion, spelling correction, a history mechanism, job control and a C-like syntax.1

1Source:TCSH

41 questions
3
votes
1 answer

problem with loading tcshrc

I have ubuntu 16.04 installed on my local pc and I'm trying to make my work environment as similar to the way it is configured at my job to achieve that I wanted to use the same tcshrc file (yes, we use tcsh, not sure why...) anyway, when I try to…
3
votes
1 answer

What is the analog of '$()' in tcsh?

I tried to do in tcsh the following: $ echo $(pwd) It does not work.
Josef Klimuk
  • 1,596
2
votes
1 answer

Sourcing a sh file is illegal in tcsh

After solving that one, I tried to source the sh script editing csh.cshrc. I added the following lines in its end: . /etc/fsl/5.0/fsl.sh setenv FREESURFER_HOME/home/User/freesurfer source $FREESURFER_HOME/SetUpFreeSurfer.csh But I get the error…
Danis Fischer
  • 227
  • 5
  • 16
2
votes
1 answer

Ubuntu 14.04 and tcsh

I've tried the recommended method to install the TCSH shell in Ubuntu 14.04, sudo apt-get install tcsh but get the message: Unable to locate package tcsh Is there something else I need to download?
1
vote
2 answers

Remove an initial part of a string in tcsh

I have a variable storing "ping_abc", how do I remove the "ping_" part to get just "abc"? My approach: variable 'test' stores "ping_abc" I tried: echo ${test:0:4} But this is giving me: Bad : modifier in $ (4), error Approach on suggested answer…
0
votes
0 answers

Delay for tcsh scripts

I'm running Ubuntu 18.04. My login shell is tcsh. Whenever I run a script in this shell, there is about a half-second delay before it executes. Suppose I make an empty file, tmp, in my home directory, and make it executable (other scripts are…
Geroch
  • 1
  • 1
0
votes
1 answer

Redirecting foreach output into a file

The example below does not work: ~/test is empty. foreach i (`ls`) foreach echo $i > ~/test foreach end As well this does not work (unlike bash): foreach i (`ls`) foreach echo $i foreach end > ~/test
Josef Klimuk
  • 1,596