Path: csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Will Mengarini Newsgroups: linux.debian.user Subject: Re: rsync --delete Date: Sat, 17 Oct 2020 08:40:01 +0200 Message-ID: References: X-Original-To: debian-user@lists.debian.org X-Mailbox-Line: From debian-user-request@lists.debian.org Sat Oct 17 06:37:56 2020 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, MONEY=0.5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -6.6 X-Greylist: delayed 484 seconds by postgrey-1.36 at bendel; Sat, 17 Oct 2020 06:37:43 UTC Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eskimo.com; s=default; t=1602916174; bh=4FnpYQNAzhDsELFCkL+sHgnSaNVT+deCfj9f4Q4wWoU=; h=Date:From:To:Subject:References:In-Reply-To:From; b=jTlBb/9rZVFQtf2KFv5lvmBPJgGEzhfhjDxVyF7QQogmZRtN113ZNyhlG932cVuXQ dNugUk6LHuNkWoj3m3Ti+Icd7kjCSFH0Fva61cksrrmehM7SnVclllOoxELGl1WdqT uL35C9wY+Dske0raCWKfh+H5+40+7h9NhkT9iMsZqnO/lKeanXQNm/Ub+7IDlBblmH 05sZINqvVb07larNyLqtqQuexY3U6sw42YTeNlMOBWmklzChmd+iTePXDNDoMAWL9S YuiK0mil/y+WvChcU6eKD3rd9n+dee0FeGLHYCirWmP0y62Y2bol80hIXSIGARTMQA uuv9QPWaK3xcA== MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Disposition-Notification-To: Will Mengarini User-Agent: Mutt/1.10.1 (2018-07-13) X-Virus-Status: Clean X-Mailing-List: archive/latest/768270 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20201017062934.GA30274@eskimo.com Approved: robomod@news.nic.it Lines: 27 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 16 Oct 2020 23:29:34 -0700 X-Original-Message-ID: <20201017062934.GA30274@eskimo.com> X-Original-References: <20201016220942.GA4949@MikesPI> Xref: csiph.com linux.debian.user:227899 * Mike McClain [20-10/16=Fr 17:09 -0500]: > [...] A section of the backup script is so: > Params=(-a --inplace --delete); > [...] > echo /usr/bin/rsync $Params --exclude-from=/home/mike/.rsync_exclude . $Flash/mike Try this to be sure your shell is doing what you think: debian/pts/14 bash ~ 23:20 0$a=(x y z) debian/pts/14 bash ~ 23:20 0$echo $a x debian/pts/14 bash ~ 23:20 0$echo "$a" x debian/pts/14 bash ~ 23:21 0$echo "${a[@]}" x y z debian/pts/14 bash ~ 23:21 0$a=x y z # Suggested in another reply bash: y: command not found debian/pts/14 bash ~ 23:21 127$echo "$a" x debian/pts/14 bash ~ 23:25 0$a="x y z" debian/pts/14 bash ~ 23:25 0$echo $a x y z debian/pts/14 bash ~ 23:26 0$echo "$a" # preferred x y z debian/pts/14 bash ~ 23:26 0$# When $a is embedded, quote *outer* string: debian/pts/14 bash ~ 23:27 0$echo "foo $a bar" foo x y z bar debian/pts/14 bash ~ 23:27 0$