[25390] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r24946 - trunk/debathena/config/shell-config/debian

daemon@ATHENA.MIT.EDU (Geoffrey Thomas)
Fri Feb 11 11:54:26 2011

Date: Fri, 11 Feb 2011 11:54:20 -0500
From: Geoffrey Thomas <geofft@MIT.EDU>
Message-Id: <201102111654.p1BGsKC2022976@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: geofft
Date: 2011-02-11 11:54:20 -0500 (Fri, 11 Feb 2011)
New Revision: 24946

Modified:
   trunk/debathena/config/shell-config/debian/changelog
   trunk/debathena/config/shell-config/debian/cshrc.debathena
Log:
In shell-config:
  * Avoid multi-line aliases in tcsh, because they play poorly with
    precmd (in particular the return value of precmd becomes $?,
    trashing the return value of the real previous command). It works
    fine if you remove the linebreaks. I hate tcsh so much.


Modified: trunk/debathena/config/shell-config/debian/changelog
===================================================================
--- trunk/debathena/config/shell-config/debian/changelog	2011-02-09 19:36:37 UTC (rev 24945)
+++ trunk/debathena/config/shell-config/debian/changelog	2011-02-11 16:54:20 UTC (rev 24946)
@@ -1,3 +1,12 @@
+debathena-shell-config (1.14) unstable; urgency=low
+
+  * Avoid multi-line aliases in tcsh, because they play poorly with
+    precmd (in particular the return value of precmd becomes $?,
+    trashing the return value of the real previous command). It works
+    fine if you remove the linebreaks. I hate tcsh so much.
+
+ -- Geoffrey Thomas <geofft@mit.edu>  Fri, 11 Feb 2011 11:48:46 -0500
+
 debathena-shell-config (1.13) unstable; urgency=low
 
   * Make renew work for cells other than athena.mit.edu

Modified: trunk/debathena/config/shell-config/debian/cshrc.debathena
===================================================================
--- trunk/debathena/config/shell-config/debian/cshrc.debathena	2011-02-09 19:36:37 UTC (rev 24945)
+++ trunk/debathena/config/shell-config/debian/cshrc.debathena	2011-02-11 16:54:20 UTC (rev 24946)
@@ -12,10 +12,7 @@
     setenv DEBATHENA_AKLOG "fsid -a"
 endif
 
-alias renew 'set KINIT_ARGS=""; \
-    kinit -4 </dev/null >& /dev/null; \
-    if ($? != 3) set KINIT_ARGS="-45"; \
-    kinit $KINIT_ARGS "$ATHENA_USER" && $DEBATHENA_AKLOG'
+alias renew 'set KINIT_ARGS=""; kinit -4 </dev/null >& /dev/null; if ($? != 3) set KINIT_ARGS="-45"; kinit $KINIT_ARGS "$ATHENA_USER" && $DEBATHENA_AKLOG'
 
 set add_flags
 alias add 'eval `/bin/attach -Padd $add_flags \!:*`'


home help back first fref pref prev next nref lref last post