0
votes
0answers
60 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
352 views

FreeBSD csh style history auto completion in bash

I am looking for a way to make it so that my ubuntu bash shell has the same kind of history completion as you get with csh in FreeBSD. The behavior is that on the command line if i start to type ...
0
votes
1answer
146 views

csh bindkey what is “\346”

It looks like I cannot use Ctrl+right_arrow to forward word on my c shell. After some effort I found out that the all the key bindings can be found with bindkey command and I get these: "\306" ...
0
votes
3answers
9k views

What does ~ mean in a Linux shell?

I'm new to Linux and have been seeing this often. Could someone explain the concept here? ~/.somefilename What does the ~ (tilde) signify?
2
votes
1answer
559 views

Bash alias history substitution similar to \!* in csh

My question is very similar to that of this old post. I would like to do something similar: place in an alias the last argument(s) typed on the current command line. This would be equivalent to the ...
2
votes
1answer
3k views

How to write a setevn/export script that will work in both csh and bash?

In my environment (RHEL) I have a bunch of script that are written in either csh or bash. Some of them are used to deal with a tomcat server. I want to keep the definitions of CATALINA_HOME and ...
0
votes
1answer
652 views

Why do I get a different behavior of the scp command in csh and bash?

Why do I get a different behavior of the scp command in csh and bash? Same command is working in csh shell, but it not working in bash shell. Please can anybody help? bash-3.2$ csh Linux-007% ...
1
vote
0answers
309 views

Converting csh or tsh scripts to Bash

I am looking for a tool that can convert scripts written in csh or tcsh to a bash scripts. At least on the basic stuff so that I don't have to go through the process of translating everything from ...
1
vote
2answers
362 views

What are the options to make csh behave more Windows-like?

I'm using csh via PuTTY from a Windows PC and since I'm used to having the HOME button just place the cursor at the beginning of the string (instead of inserting ~) or ctrl+arrow place the cursor at ...
2
votes
2answers
1k views

How to open xterm shells with background colors based on topographic positioning?

I currently use an alias in csh/tcsh to open shells with specific window colors. Example: xterm -geometry 105x25 -font 8x13 -bc -bg #333 -fg #999 \!* & What I'd like to do is have one command ...
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 ~]$ ...
11
votes
5answers
13k views

Is there a way to escape single-quotes in the shell?

E. g. I want to say perl -e 'print '"'"'Hello, world!'"'"', "\n";' Is there a less awkward way to do it, e. g. escaping single-quotes? Yes, I know that I can write perl -e 'print q[Hello, ...