[23395] in Source-Commits

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

/svn/athena r23049 - in trunk/debathena/debathena/dotfiles: . debian

daemon@ATHENA.MIT.EDU (ghudson@MIT.EDU)
Mon Jun 30 11:10:56 2008

Date: Mon, 30 Jun 2008 11:10:22 -0400 (EDT)
From: ghudson@MIT.EDU
Message-Id: <200806301510.LAA09748@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: ghudson
Date: 2008-06-30 11:10:21 -0400 (Mon, 30 Jun 2008)
New Revision: 23049

Modified:
   trunk/debathena/debathena/dotfiles/cshrc
   trunk/debathena/debathena/dotfiles/debian/changelog
Log:
Restore "extend" aliases in standard cshrc for compatibility.  It seems
that accounts with RSI student customizations make use of it.


Modified: trunk/debathena/debathena/dotfiles/cshrc
===================================================================
--- trunk/debathena/debathena/dotfiles/cshrc	2008-06-30 00:20:36 UTC (rev 23048)
+++ trunk/debathena/debathena/dotfiles/cshrc	2008-06-30 15:10:21 UTC (rev 23049)
@@ -83,6 +83,22 @@
   endif
   unset x
 
+  # This "extend" alias and friends have been left in for backwards
+  # compatibility with old .environment files, just in case. The new
+  # add alias does not use them.
+  alias extend 'if (-d \!:2) if ("$\!:1" \!~ *"\!:2"*) set extendyes && \\
+  if ($?extendyes && $?verboseadd) echo \!:2 added to end of \$\!:1 && \\
+  if ($?extendyes) setenv \!:1 ${\!:1}:\!:2 && \\
+  unset extendyes'
+  alias sextend 'if (-d \!:2) if ("$\!:1" \!~ *"\!:2"*) set extendyes && \\
+  if ($?extendyes && $?verboseadd) echo \!:2 added to end of \$\!:1 && \\
+  if ($?extendyes) set \!:1=(${\!:1} \!:2) && \\
+  unset extendyes'
+  alias textend 'if (-d \!:2) if ("$\!:1" \!~ *"\!:2"*) set extendyes && \\
+  if ($?extendyes && $?verboseadd) echo \!:2 added to end of \$\!:1 && \\
+  if ($?extendyes) set \!:1=${\!:1}:\!:2 && \\
+  unset extendyes'
+
   # Run user environment customizations identified in your
   # ~/.environment file.  This is the place to include your own
   # environment variables, attach commands, and other system wide
@@ -93,6 +109,8 @@
 
   if ((! $?NOCALLS) && (-r ~/.environment)) source ~/.environment
 
+  unalias extend sextend textend
+
   if ((! $?NOCALLS) && (-r ~/.path)) then
     # Support .path files for compatibility.
     set athena_path=$path

Modified: trunk/debathena/debathena/dotfiles/debian/changelog
===================================================================
--- trunk/debathena/debathena/dotfiles/debian/changelog	2008-06-30 00:20:36 UTC (rev 23048)
+++ trunk/debathena/debathena/dotfiles/debian/changelog	2008-06-30 15:10:21 UTC (rev 23049)
@@ -1,3 +1,9 @@
+debathena-dotfiles (10.0.5-0debathena1) unstable; urgency=low
+
+  * Restore "extend" aliases in cshrc for compatibility.
+
+ -- Greg Hudson <ghudson@mit.edu>  Mon, 30 Jun 2008 11:08:42 -0400
+
 debathena-dotfiles (10.0.4-0debathena1) unstable; urgency=low
 
   * Don't add sbin directories to user paths after all.


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