Gnus development mailing list
 help / color / mirror / Atom feed
From: "Steven E. Harris" <seh@panix.com>
Subject: Re: No Gnus feature request: simpler file structure for synching
Date: Thu, 08 Jan 2004 14:51:56 -0800	[thread overview]
Message-ID: <q67vfnm9hpv.fsf@L75001820.us.ray.com> (raw)
In-Reply-To: <v9k742xeo0.fsf@marauder.physik.uni-ulm.de>

Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes:

> The »*~« part is not properly quoted (o=opening, c=closing quotes).

Yes, I had noticed that while fiddling around with the exclude
settings, which rsync was ignoring. I tried various quoting schemes,
including this odd one, and it finally seemed to work, so I left
it. The real problem had been the omission of the '=' character
between "--exclude" and "*~" tokens.

> You may use one of the following:
> |     "                                   '*~'"
> |     '                                   "*~"'
> |     '                                   \'*~\''

While these all look good, and I tried them all again in good faith,
it turns out none of these three alternatives work properly on my
system (Cygwin, Windows 2000). This one works like the first I posted
(second-level quotes removed):

cmd='rsync -e ssh -lptD -vuzb --exclude=*~'


>> REMOTE=Panix:~/temp/sync/gnus
>
> Some Unix-Standard (SUS2, SYS3?  I don't remember exactly) suggest to
> use lower case variables. [1]

I was just copying some other shell script idioms I've seen. The
uppercase names help make the variable names stand out. Enclosing them
in braces helps too. The argument you offer makes sense, though, so
I'll change the case.

>>     $CMD -r $* $REMOTE/home/ .
>               ^^ better use "$@" (including the quotes)

Why is one preferable to the other in this case? I read the Bash man
page on $* and $@ and can't really see how one should choose.

-- 
Steven E. Harris



  reply	other threads:[~2004-01-08 22:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-07  0:24 No Gnus feature request: simpler file structure for synching between two machines John Owens
2004-01-07  7:22 ` No Gnus feature request: simpler file structure for synching Matt Armstrong
2004-01-07  8:27   ` Steve Youngs
2004-01-07 12:44   ` Kai Grossjohann
2004-01-07 14:28     ` Reiner Steib
2004-01-07 14:59       ` Kai Grossjohann
2004-01-07 17:42         ` nnir problems (was: No Gnus feature request: simpler file structure for synching) Reiner Steib
2004-01-07 16:20 ` No Gnus feature request: simpler file structure for synching Steven E. Harris
2004-01-08 22:23   ` Reiner Steib
2004-01-08 22:51     ` Steven E. Harris [this message]
2004-01-08 22:58       ` Paul Jarc
2004-01-07 17:07 ` John Owens
2004-01-07 17:47   ` Kai Grossjohann
2004-01-07 19:17     ` Josh Huber
2004-01-07 21:32       ` Simon Josefsson
2004-01-08 19:49     ` Steinar Bang
2004-01-11 21:49       ` Kai Grossjohann
2004-01-12 22:15         ` Steinar Bang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=q67vfnm9hpv.fsf@L75001820.us.ray.com \
    --to=seh@panix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).