The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
556 views

In csh/tcsh, how can I incorporate literal curly braces into a command that's processed with eval?

To give more details, the situation is this. I'm trying to prepare modulefiles (i.e., of the type used by the environment-modules package) to set up environment and aliases for third-party software. ...
1
vote
1answer
579 views

Using different .cshrc.user files

I have two .cshrc.user files for two different projects. For example, they set the same environment variables but with different values. When I'm currently switching between projects, I run a python ...
0
votes
1answer
11 views

Use of variables withing singlequotes, CSH

I have a short script meant to do some server maintinence, but I can't for the life of my figure out how to properly use variables within my script, Here's a code sample to make it more clear: ...
0
votes
1answer
131 views

how to set up new keybinding for finding last command executed using the first few characters of the command in csh

I want to be able to use Ctrl+R to have reverse-i search. Also if I press Shift+Up Arrow after typing the first few characters of a recently executed command then the shell should complete the command ...
8
votes
0answers
348 views

How to make auto complete available for directories in cdpath for tcsh?

I just learned the trick for setting up cdpath in tcsh and it looks pretty useful. However seems auto-complete of sub-folder names doesn't come with it, is there any trick available on that? It'd be ...
1
vote
0answers
34 views

What does the datasize limit in a csh actually do?

My .cshrc had set up a "limit datasize 256000", however several of my running processes are currently exceeding that. For example: VmPeak: 496840 kB VmSize: 496840 kB VmLck: 0 kB VmHWM: ...
1
vote
0answers
379 views

csh: Every command returns “no match”

I'm on mac OSX mountain lion working with csh. I'm not quite sure what I did, but suddenly every standard unix command I run returns a "no match". Example: $ echo "Hello" echo: no match $ rm a.txt ...
1
vote
0answers
321 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 ...
0
votes
0answers
12 views

How to append “*” to the start and end of command line parameter in CSH?

In CSH example, echo aaa can print out “aaa”; I need echo_test aaa print out “*aaa*”. While alias echo_test 'echo "*\\!**"' can only print out “*aaa”. Thanks!
0
votes
0answers
51 views

Run script on SSH login to server

I'm trying to work out how to get SSH to run a script before passing a shell to me. The reason for this is that I will be logging into shared users on many boxes and I want my own configuration when I ...
0
votes
0answers
102 views

csh: how to pattern match a file name?

I need to modify a csh script which essential does different kind file handling based on file name. The script has the following structure: foreach file ($sourceDir/*) if (-d "$file") then ...
0
votes
0answers
16 views

How to customize command completion in (t)csh?

i knew that it's related to complete built in command when you hit tab key. in the company, we have this xyz command complete | grep xyz xyz 'p/3/$$:1_$:2/' 'p/2/$abc_$:1/' ...