Re: Invoking rsync from a script with null parameters

2012-11-05 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Well, I am thinking that this is actually expected behavior that I had just never seen before. Even cat and ls duplicate this behavior. On 11/05/12 11:46, Joe wrote: > > Thanks for duplicating this. Even though it's a very small issue, > it would b

Re: Invoking rsync from a script with null parameters

2012-11-05 Thread Joe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks for duplicating this. Even though it's a very small issue, it would be good to fix it (make it an error) because this almost invisible scripting error can lead to very unpredictable results just depending on the current working directory which

Re: Invoking rsync from a script with null parameters

2012-11-05 Thread Joe
On 11/05/2012 03:22 AM, Voelker, Bernhard wrote: > Joe wrote (Monday, November 05, 2012 4:23 AM): > >> 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 ... >

Re: Invoking rsync from a script with null parameters

2012-11-05 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Very interesting. It does appear to take '' or "" as if it were "./" in fact it appears to tale " " or ' ' as "./ " which throws an error. I think the reason I haven't seen this before is that I always built up a $RSYNC_PARAMS variable and passed tha

Re: Rsync problem when connected to mirror site

2012-11-05 Thread Cuong X Dang
Francis I did increase the timeout to 60 is the same resolve Thanks From: francis.montag...@inria.fr To: Cuong X Dang Cc: rsync@lists.samba.org Date: 11/03/2012 04:19 AM Subject:Re: Rsync problem when connected to mirror site On Fri, 02 Nov 2012 19:32:14 +0100 Cuong X D

RE: Invoking rsync from a script with null parameters

2012-11-05 Thread Voelker, Bernhard
Joe wrote (Monday, November 05, 2012 4:23 AM): > 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 ... Just omit the quotes (and in this case you can also omit