[26972] in Source-Commits

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

/svn/athena r25865 - in trunk/athena/bin/getcluster: . debian

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Thu Mar 21 16:46:59 2013

Date: Thu, 21 Mar 2013 16:46:52 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201303212046.r2LKkqom026462@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: jdreed
Date: 2013-03-21 16:46:52 -0400 (Thu, 21 Mar 2013)
New Revision: 25865

Modified:
   trunk/athena/bin/getcluster/debian/changelog
   trunk/athena/bin/getcluster/getcluster.c
Log:
In getcluster:
  * Quote shell output (Trac: #1037), now that the dotfiles are actually
    fixed.


Modified: trunk/athena/bin/getcluster/debian/changelog
===================================================================
--- trunk/athena/bin/getcluster/debian/changelog	2013-03-21 20:43:33 UTC (rev 25864)
+++ trunk/athena/bin/getcluster/debian/changelog	2013-03-21 20:46:52 UTC (rev 25865)
@@ -1,3 +1,10 @@
+debathena-getcluster (10.1.0-0debathena2) unstable; urgency=low
+
+  * Quote shell output (Trac: #1037), now that the dotfiles are actually
+    fixed.
+
+ -- Jonathan Reed <jdreed@mit.edu>  Thu, 21 Mar 2013 16:45:44 -0400
+
 debathena-getcluster (10.1.0-0debathena1) unstable; urgency=low
 
   * Bump debian/compat to 6

Modified: trunk/athena/bin/getcluster/getcluster.c
===================================================================
--- trunk/athena/bin/getcluster/getcluster.c	2013-03-21 20:43:33 UTC (rev 25864)
+++ trunk/athena/bin/getcluster/getcluster.c	2013-03-21 20:46:52 UTC (rev 25865)
@@ -427,11 +427,11 @@
 static void output_var(const char *var, const char *val, int bourneshell, int plaintext)
 {
   if (bourneshell)
-    printf("%s=%s ; export %s ;\n", var, val, var);
+    printf("%s=\"%s\" ; export %s ;\n", var, val, var);
   else if (plaintext)
     printf("%s %s\n", var, val);
   else
-    printf("setenv %s %s ;\n", var, val);
+    printf("setenv %s \"%s\" ;\n", var, val);
 }
 
 static void upper(char *v)


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