[PLUG] When is it necessary to escape spaces in file names?
Denis Heidtmann
denis.heidtmann at gmail.com
Wed Sep 2 23:13:14 UTC 2015
Thanks.
No escape characters in file names.
Are there instances where adding the backslash to escape a space gets
interpreted as part of the name rather than processed as an escape?
-Denis
-Denis
On Wed, Sep 2, 2015 at 3:36 PM, Louis Kowolowski <louisk at cryptomonkeys.org>
wrote:
> You should be able to use either one, but quoting may be easier, or get
> you going faster.
> Something like:
> rsync -aPS foo user at host:”/path/to/dir with spaces/“
> should work. Likewise,
> rsync -aPS foo user at host:/path/to/dir\ with\ spaces/
> should also work
>
> It gets more complicated if there are escape characters in the directory
> or file name. Hopefully that isn’t happening.
>
>
> > On Sep 2, 2015, at 3:11 PM, Denis Heidtmann <denis.heidtmann at gmail.com>
> wrote:
> >
> > I am trying to set up dirvish for local backup. One file, VirtualBox
> VMs,
> > presents the subject question. In dirvish, the name will appear in two
> > places: The exclude: entry in the default.conf file for the backup of
> all
> > of home, and in the tree: entry in the default.conf file for the backup
> > of VirtualBox VMs
> >
> > I can run a bunch of tests, but I would like some understanding when
> > escaping the space is needed. Should I be using the backslash or double
> > quotes?
> >
> > I have looked at the documents for rsync, which dirvish uses, but it is
> too
> > dense for my soft head.
> >
> > Thanks,
> > -Denis
> > _______________________________________________
> > PLUG mailing list
> > PLUG at lists.pdxlinux.org
> > http://lists.pdxlinux.org/mailman/listinfo/plug
>
> --
> Louis Kowolowski louisk at cryptomonkeys.org
> <mailto:louisk at cryptomonkeys.org>
> Cryptomonkeys:
> http://www.cryptomonkeys.com/ <http://www.cryptomonkeys.com/>
>
> Making life more interesting for people since 1977
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
More information about the PLUG
mailing list