<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 11/05/2012 03:22 AM, Voelker,
Bernhard wrote:<br>
</div>
<blockquote
cite="mid:A75C39900FCF0B42A2CE8B26F837D2C307E187@MCHP02MSX.global-ad.net"
type="cite">
<pre wrap="">Joe wrote (Monday, November 05, 2012 4:23 AM):
</pre>
<blockquote type="cite">
<pre wrap="">To avoid having a number of slightly different rsync commands, I would
like to use shell variables as part of the rsync command. I.e.:
DRYRUN="-n"
rsync "${DRYRUN}" more parameters ...
</pre>
</blockquote>
<pre wrap="">
Just omit the quotes (and in this case you can
also omit the curly braces):
$ rsync $DRYRUN more parameters ...
Have a nice day,
Berny
</pre>
</blockquote>
Thanks. Blindingly obvious, so I didn't see it.<br>
<br>
I almost always put the curly braces in. They don't hurt anything
and if I modify a script later, variables are protected from being
accidentally renamed by something getting concatenated to them.<br>
<br>
However, it still looks like rsync did something unexpected that it
probably should not have done.<br>
<br>
Joe<br>
</body>
</html>