Reputation
655
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
1 3 19
Newest
 Announcer
Impact
~18k people reached

5h
answered How do I create a rule for custom flag replacement with C shell?
Feb
3
comment Are there non-interactive login shells?
telnet towel.blinkenlights.nl for a login shell that is non-interactive ;-)
Feb
3
revised Vim Open file in multi split modes
added 95 characters in body
Feb
3
revised Vim Open file in multi split modes
Not a tcsh question;
Feb
3
answered Vim Open file in multi split modes
Feb
3
suggested approved edit on Vim Open file in multi split modes
Feb
2
awarded  Announcer
Jan
29
comment How to properly use $_ inside a tcsh script sourced from another tcsh script?
As to the answer "why does tcsh behave like this?" That's because it's crappy code dating back to the 1970s when Bill Joy write the first csh as a student and later admitted that he "didn't really know what he was doing". There are many quirks in (t)csh scripting, and is typically best avoided altogether if possible.
Jan
29
comment How to properly use $_ inside a tcsh script sourced from another tcsh script?
Why would you even need $_ from inside a script? This seems like a XY problem to me. I think you're better off describing what exactly you're trying to do, rather than use an "abstract" example like this.
Jan
27
answered Configure cshrc to set paths for specific dirs
Jan
22
comment Why do I get the message set no match when I run this script?
What @terdon said. I suspect you're running into a case of accidental globbing, though. Try adding set noglob to the top of the script.
Jan
20
comment Setting environment variable using shell script
You should post a minimal example that demonstrates the problem; because right now we can only guess as to where your error is...
Jan
19
comment Setting environment variable using shell script
If you use source then it should work. If you actually execute the script it doesn't because that's a different process. What exactly did you do?
Jan
18
awarded  Famous Question
Jan
13
comment Updating a git variable in the Shell prompt on every command
Read man tcsh.
Jan
13
comment Updating a git variable in the Shell prompt on every command
Yes, so you need to use postcmd. And the trick is to set the prompt from postcmd. Assigning variable is useless since .tcshrc isn't read.
Jan
13
comment Updating a git variable in the Shell prompt on every command
I don't have time for a full answer, but you can use the special postcmd alias for this. I do similar tricks with cwdcmd to show the repo branch in my prompt (alias cwdcmd source ~/.tcsh/cwdcmd.tcsh). it's a bit ugly though, due to tcsh's shortcomings :-/
Nov
27
comment Merging two files using scripts
This script seems like a strange mix of csh, Bourne shell, and tcl...
Oct
24
comment csh: Using -d as an argument and not test
Also posted on SO
Oct
8
comment Avoid pgrep in csh
@JuM Yes; csh scripting is awkward. You pretty much always want to go for Bourne scripting or a "real" language.