[9528] in athena10

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

Re: [Debathena] #1037: getcluster(1) should quote its shell output

daemon@ATHENA.MIT.EDU (Debathena Trac)
Thu Jul 19 23:30:02 2012

MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
From: "Debathena Trac" <debathena@MIT.EDU>
Cc: debathena@MIT.EDU
To: jdreed@MIT.EDU, geofft@MIT.EDU, andersk@MIT.EDU
Date: Fri, 20 Jul 2012 03:29:56 -0000
Reply-To: 
Message-ID: <057.0782d87c4ea22fcff588d5f1d33fee6e@mit.edu>
In-Reply-To: <042.fc21a97e1199e61be86a2a1ffbbd2304@mit.edu>
Content-Transfer-Encoding: 8bit

#1037: getcluster(1) should quote its shell output
--------------------+--------------------------------
 Reporter:  jdreed  |         Owner:  jdreed
     Type:  defect  |        Status:  reopened
 Priority:  normal  |     Milestone:  Precise Release
Component:  --      |    Resolution:
 Keywords:          |  Upstream bug:
--------------------+--------------------------------

Comment (by andersk):

 And/or we could add an better interface (so we don’t have to think about
 filtering out dangerous variables like `PATH`).  I propose this one:

 {{{
 $ getcluster -h w20-575-1 12.04 APT_RELEASE LPR
 proposed
 mitprint

 $ { read APT_RELEASE; read LPR; } <<EOF
 $(getcluster -h w20-575-1 12.04 APT_RELEASE LPR)
 EOF

 $ echo "APT_RELEASE=$APT_RELEASE LPR=$LPR"
 APT_RELEASE=foo LPR=bar
 }}}

-- 
Ticket URL: <https://athena10.mit.edu/trac/ticket/1037#comment:8>
Debathena <http://debathena.mit.edu>
MIT Debathena Project


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