Questions tagged [csh]
The C shell (csh), once one of the two major Unix shells with the Bourne shell. Csh had more advanced interactive feature but has been surpassed by modern Bourne-style shells such as zsh and bash.
287
questions
1
vote
2
answers
125
views
how to create a csh script that can identify the correct USB disk where I have saved my virtual machines
I'm running Freebsd 13R and as shell I'm using csh. I would like to create a script,that looks the presence of the word "r1w1e2" or "NM13N4CZ" or "3e4d31334e34435a" when ...
0
votes
1
answer
928
views
How to open current path when creating a new tab in gnome terminal when using csh shell?
I'm on CentOS 7.9 (Gnome Terminal 3.28.2) with csh (yeah I know but work requirement) as my default shell. My problem is this: whenever I open a new tab in gnome terminal, the new tab redirects to ~/, ...
2
votes
0
answers
983
views
Sync terminal history in c shell
For work, I remote into a linux server that uses c shell rather than bash using Remote Desktop. While in session (lets call it session 1) I'll open up many tabs in a given terminal and type commands ...
0
votes
1
answer
484
views
Behaviour of single and double quotes depending on shell
I've been scratching my head for quite some time with this....
Inspired by this answer, I'm trying to run 'ack' and to find either a single quote or a double quote in source files.
Doing this in bash ...
0
votes
0
answers
64
views
Replacement in file using bash
I'm trying to translate (a pretty lengthy) script from csh to bash. It takes a 'Makefile' and performs the commands:
cpp_begin_line=`grep -n cpp_flags Makefile | sed 's/:/ /' `
cpp_end_line=`grep -n ...
0
votes
0
answers
3k
views
C-shell prompt color
I wan to change the color of my csh shell. I've edited my .cshrc file, following the instruction I've found here, and included this in it:
set yellow="%{\033[1;33m%}"
set end="%{\...
0
votes
1
answer
339
views
TCSH: 'Can't find string terminator' Error From perl -e in TCSH Script
I'm seeing this error from my tcsh script and I can't figure out why.
Script:
#!/usr/bin/env tcsh
foreach n (0 1)
set PERL_CMD = "perl -e 'print qq^RUNNING^; exit ${n} '"
echo "...
0
votes
1
answer
928
views
sourcing a csh file from bash results in "syntax error: unexpected end of file"
I'm the beginner of Linux.
So I have a problem when I source the file.
$ source ~cupsoft/kims_setup.csh
bash: setenv: command not found
bash: setenv: command not found
bash: setenv: command not found
...
0
votes
0
answers
92
views
How can I prevent standard output from displaying as a standard error in csh or tcsh?
When executing a process in the background using '&', the standard output goes to standard error. This happens if an error is detected in the standard error output when executing a command, or if ...
0
votes
1
answer
224
views
How to unbold my tcsh prompt (my tcsh prompt is stuck bold)?
Unlike most searches I did on this question, I want my prompt to not be bold. But I can't stop it.
Here is how I set my prompt.
set green = "%{\033[01;32m%}"
set white = "%{\033[...
0
votes
0
answers
409
views
csh up arrow for previous matching command
How can i configure .cshrc file to use Shift+UpArrow go through history backward search? Also, how can i configure searching cmds with same prefix?
I have tried looking through .cshrc file but doesn't ...
3
votes
1
answer
3k
views
Using single quotes inside input of heredocs
I need some help debugging my tcsh script. It uses heredocs. The code:
<pre_setup> <<EOF1
<setup> <<EOF2
<command>
exit 0
EOF2
exit 0
EOF1
The <pre_setup> is ...
0
votes
2
answers
953
views
What does it mean <<EOF in (t)csh?
I have the following command:
wash -n <groups> <<EOF
echo hi
echo bye <<BYE
<commands>
exit 0
BYE
exit 0
EOF
<commands>
where <groups> are some groups and <...
3
votes
2
answers
4k
views
How to reload aliases added in ~/.cshrc without reboot FreeBSD 11.3
As the title states, how to reload aliases added in ~/.cshrc without rebooting FreeBSD 11.3?
0
votes
1
answer
763
views
running cshrc script in RHEL 7 from bash account does not work
I was given a software suite which is based around cshrc.
Such that a user is supposed to source a setup.cshrc file and within that it sources numerous other .cshrc scripts to set up the environment ...