Berkeley CSUA MOTD:Entry 28970
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/04 [General] UID:1000 Activity:popular
4/4     

2003/7/9 [Computer/SW/Unix] UID:28970 Activity:high
7/8     Cygwin/tcsh users: Some odd bug in tcsh made it create a 1.7 gig
        .history file in my $home.  It took a few minutes to figure out why
        new tcsh's would swap the machine to death and never start but that
        was it.  Just trying to save someone else some hassle and time if
        it ever happens to you.
        \_ err.. what version is your cygwin/tcsh?  I have been using it
           for past 10 months and my .history file is kept under 1kb.
           \_ I keep it updated almost daily.  It hasn't changed in more than
              a month.  I've been using it for about 6 months.  This is the
              first time anything weird happened.  I had about 12 rxvt/tcsh
              windows open and ssh'd to work.  The work firewall timed me
              out (oops!) and I was stuck scratching my head trying to open
              new shells after I killed the timed out ones.  I've changed
              nothing in my config recently.  I think I just ran into some
              odd bug.  It was 1.7gigs of my prompt over and over.
              \_ so you had a dynamic prompt that dumped into .history.
                 don't use dynamic prompts or precmd/postcmd aliases..
                 use the tcsh builtin prompt bits. There's nothing useful
                 that they won't do.
2025/04/04 [General] UID:1000 Activity:popular
4/4     

You may also be interested in these entries...
2009/12/9-2010/1/13 [Computer/SW/Unix] UID:53586 Activity:nil
12/8    Is there a bash equivalent to tcsh's history-search-backward ?
        \_ There's something similar called... history-search-backward. It
           is a bit more limited, in that it only searches for strings and
           not glob patterns. You may find reverse-i-search to be useful also.
	...
2009/8/18-9/1 [Computer/SW/Unix] UID:53284 Activity:nil
8/18    Is it possible to truncate your path name in your prompt in tcsh?
        Tsch veterans REPRESENT!  I know this is how to do it in bash:
        # truncate path: returns $1 truncated to $2 chars, prefixed with ...
        truncate_path () {
                if [ -z "$1" -o -z "$2" ]
                then
	...
2009/8/19-9/1 [Computer/SW/Unix] UID:53285 Activity:nil
8/18    Hi again, new freebsd guy here again, in bash I was able to go
        LD_LIBRARY_PATH=/opt/foo/lib ./runmyapp
        I managed to do this in tcsh by using setenv in a shell script
        that setenv's the lib path and then executes $1, just wondering
        if there was a way to do it in 1 line from the cmd line as in bash?
        Thanks, btw %2c or %3c worked.  Freebsd, tcsh and vi forever!
	...
2009/1/20-26 [Computer/SW/Unix] UID:52420 Activity:low
1/20    I have a rather common shell-scripting problem, but I am not sure
        how to do it in csh/tcsh.  I want to check the ctime (last
        modified time) of a file.  If it is older than, let say, 1
        hours, do something, older than 3 hours, then do something +
        something else.  Any hints on how to do this?  do i need to
        convert it to epoch to perform such manipulation?  thanks
	...
2009/1/20-26 [Computer/SW/Languages/Java, Computer/SW/Languages/Misc] UID:52425 Activity:nil
1/20    I've been using tcsh as shell program tool (i know, bad shell to
        do scripting).  One thing I've noticed when I extract xml file
        is that the variable type automatically change from
        integer/string to... almost an array-like data structure when
        the output of the xml key/value is more than one (it's more
        like a string separated by space, but I was very impressed as
	...
2009/1/13-22 [Computer/Theory] UID:52367 Activity:kinda low
1/13    I am writing a commandline parser for a class and I could use some
        tips for algorithms to use. (The project is over and done so I am
        not cheating, but I am dissatisfied with my end result.) I STFW and
        didn't come up with too much I liked. I read the source for some
        shells like tcsh and that is *WAY* too complicated and relies on
        a lot of other code. I know that browsers and other apps have
	...
2007/10/9-11 [Computer/SW/Unix] UID:48269 Activity:nil
10/9    It's great that soda's been more or less up for the past few months,
        but I really hate Linux and all this gnu shit... ELinks, crappy vi,
        etc.  I miss links and a tcsh that works.
        \_ What's wrong with the current tcsh on soda?  Why don't you just ask
           root to install links or build it yourself?  Also, barring things
           that actually need to talk to the kernel, e.g. threading libraries,
	...
2006/10/30-11/1 [Computer/SW/Unix] UID:45041 Activity:high
10/30   My favorite command in UNIX is "cal". What is your favorite?
           \_ Nein, I vill be. A German and a Jerry, danke, und Heil! -John
              \_ PARSE ERROR. Are you on drugs again John?
                 \_ That's just my troll farm being rambunctious.  Use new
                    Extra Strength Troll-Gro for healthy and frisky trolls!
        \_ Based on frequency of use, gonna have to go with tcsh
	...
2006/9/1-3 [Computer/Networking, Computer/HW] UID:44235 Activity:nil
9/1     I want to add a quick and dirty alias for a server on my local machine.
        So instead of using some-really-long-host-name, I want to use srlhn:
        scp me@srlhn:foo
        But if I put that into /etc/hosts, it requires an IP address, and this
        server may be changing its IP address from time to time.  I'm not
        running DNS.  Any suggestions?
	...
2006/5/23-28 [Computer/SW/Languages/Perl, Computer/SW/Unix] UID:43168 Activity:nil
5/23    I'm trying to learn sh, bash, and csh programming. What's a good
        site that has sample syntax of the following ***psuedocode*** for
        each of the shells?
        foreach $file in (<dir/*>) do;
          echo I have file $file
        done;
	...