[25581] in Source-Commits
/svn/athena r25099 - trunk/debathena/debathena/dotfiles
daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Thu Apr 21 16:16:50 2011
Date: Thu, 21 Apr 2011 16:16:44 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201104212016.p3LKGimi023845@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: jdreed
Date: 2011-04-21 16:16:43 -0400 (Thu, 21 Apr 2011)
New Revision: 25099
Modified:
trunk/debathena/debathena/dotfiles/bashrc
trunk/debathena/debathena/dotfiles/cshrc
Log:
Quote $command in cshrc
Add a space to the scp case statement in bashrc, to catch all the users
executing scp-sux-my-binary-is-cooler
Modified: trunk/debathena/debathena/dotfiles/bashrc
===================================================================
--- trunk/debathena/debathena/dotfiles/bashrc 2011-04-21 20:10:01 UTC (rev 25098)
+++ trunk/debathena/debathena/dotfiles/bashrc 2011-04-21 20:16:43 UTC (rev 25099)
@@ -12,7 +12,7 @@
/usr/lib/openssh/sftp-server)
SILENT=yes
;;
- scp*)
+ scp\ *)
SILENT=yes
;;
esac
Modified: trunk/debathena/debathena/dotfiles/cshrc
===================================================================
--- trunk/debathena/debathena/dotfiles/cshrc 2011-04-21 20:10:01 UTC (rev 25098)
+++ trunk/debathena/debathena/dotfiles/cshrc 2011-04-21 20:16:43 UTC (rev 25099)
@@ -10,7 +10,7 @@
# Determine if we're in an sftp or scp session, and if so, be quiet
set SILENT=no
if ($?command) then
- switch (`echo $command | cut -d\ -f 1`)
+ switch (`echo "$command" | cut -d\ -f 1`)
case /usr/lib/openssh/sftp-server:
set SILENT=yes
breaksw