0
votes
0answers
47 views

How can my bash script inherit core limits from a C shell?

I'm using tcsh for my shell. I disable core dumps by running "limit core 0". Running a program that crashes from my shell, I can see that indeed no core dump is generated. Next I have a wrapper ...
1
vote
1answer
267 views

Use “>>” Redirection Operator for Non-Existent File In tcsh/csh

I'm writing tcsh scripts and I would like to append to a log file, but if the log file doesn't exist before appending to it, I get an error (reproduced below). In bash the file gets created if it ...
0
votes
1answer
83 views

Tcsh command history

I use tcsh and have the following in my .cshrc file. But the .history file is not updated as and when I execute a command. Is there anyway so that .history file is updated every time I execute a ...
2
votes
1answer
202 views

Echo string in tcsh with special characters escaped

Is it possible to echo out a string in tcsh such that it is fully escaped, as tcsh would understand? In the same way as printf %q works in bash: % # Create a variable containing a tab character % ...
0
votes
1answer
42 views

tcsh: how to enter a subdirectory that's most recently modified?

I found it for bash, but how would I do it for tcsh? I want to chain it with a cd command.
0
votes
2answers
167 views

Ignore variables from another shell

I am on a linux workstation in a network, with an "old" distrib. Furthermore, login shell is enforced to CSH. I already asked to Admins if it would be possible to switch to another one (I would like ...
4
votes
2answers
264 views

What's DING!? Shell prompt with time in it

I am using tcsh shell. I put time in my shell prompt. It shows me DING! sometimes, what's up with that? /home/snihalani on master at 2:55pm => /home/snihalani on master at DING! => ...
0
votes
2answers
539 views

Opening new terminal window does not pick up .cshrc

I am using KDE and Konsole. When I open a new tab, it does not pick up my .cshrc in my home directory. I am using tcsh. How I do I force re-loading of the .cshrc in my home directory without having to ...
3
votes
3answers
5k views

Redirect stdout to stderr in tcsh

From my understanding, the following should send 'test' on standard error in tcsh: echo test >&2 However, it instead writes 'test' to a file named 2, and when I look through my history, I ...
3
votes
1answer
263 views

How to save shell history more conveniently in tcsh?

I'm using tcsh quite extensively and have several questions about it's history: Is there a way to save commands for different shell tabs separately? Is there a way to save commands by session (for ...
1
vote
2answers
321 views

“which” Program Requires Shell Refresh to See Newly Installed Programs?

Why does the Linux program which require you to refresh the shell (e.g. type tcsh in the terminal) to see new programs installed in your path?? I was baffled why I couldn't access a program, which ...
2
votes
0answers
82 views

Something is changing the OSX default shell to tcsh

On one of the mac machines I'm somewhat responsible for (Snow Leopard), something periodically changes the default login shell from bash to tcsh. This seems like it's probably suspicious, but not ...
2
votes
2answers
589 views

On Linux (CentOS 5), remembering when we've followed a symlink and being about to 'cd ..' out again

I'm trying to figure out how to tell the shell (tcsh) to remember when I've gone into a symlinked folder, and allow 'cd ..' to navigate back out of the symlink rather than just navigate to the parent ...
1
vote
1answer
461 views

command limits when pasting into tcsh (mac OS X)

I encountered a 1024 character limit problem when pasting commands into the terminal application (max OS X 10.5.8) running the TC shell (/bin/tcsh). This can consistently be reproduced by pasting the ...
2
votes
2answers
146 views

Is this alias any useful?

I am going through and old .cshrc file and it contains the following alias: alias pwd 'echo $cwd' How is that useful? I used to think that this is how pwd might have been implemented. But looks ...
0
votes
3answers
1k views

run tcsh but bash started instead

I tried to start a tcsh on my Fedora 7 (default shell is bash) [ss@ssvm ~]$ tcsh [ss@ssvm ~]$ echo $SHELL /bin/bash As you see, another bash shell started. I looked at the tcsh file: [ss@ssvm ~]$ ...
3
votes
1answer
448 views

In tcsh, how can I silence the output of an already running background process?

If I've launched a job into the background how can I redirect its output to /dev/null or in some way silence its output? I didn't start the job like: CMD >& /dev/null & I started it ...
-1
votes
3answers
222 views

what does tail + number does? What about head

I just called this command ls -l | tail +3. Firstly, ls -s, produces 3 lines, adding piping strips first line and then prints each file names on a separate line. How does it do that? It doesn't make ...
1
vote
1answer
180 views

history file grows indefinitely

I believe I get the same problem as this guy. I'm on AIX, with tcsh 6.12.00 After (probably) a bad logout, the history file exponentially grown, until the quota stopped it (and when the quota was ...