Date: Wed, 18 Feb 2004 16:48:04 +0100 From: bla@dayab.ch To: Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com> Cc: freebsd-questions@freebsd.org Subject: Re: dump and : Message-ID: <20040218154803.GB587@bturtle.ch> In-Reply-To: <444qto8o5r.fsf@be-well.ilk.org> References: <20040216210658.GB12702@bturtle.ch> <444qto8o5r.fsf@be-well.ilk.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 18, 2004 at 09:20:32AM -0500, Lowell Gilbert wrote: > bla@dayab.ch writes: > > > just stumbled over this. If I try to do a dump to a file which has a ':' > > in its name or path, dump tries to connect to a server (which is > > obvious as this is the notation for a remote dump). > > Precisely. > > > example: > > # dump -f some:file /var > > DUMP: rcmd: getaddrinfo: hostname nor servname provided, or not known > > DUMP: login to some as root failed. > > > > escaping (dump -f "some\:file" /var) does not work. > > Right; it's not the shell that you need to hide the colon from, so > escaping it in the shell syntax won't make any difference. That's why I put the " aroud the name (trying to escape the colon to dump) > > > Is this behaviour > > intended? > > Yes; as you pointed out yourself, it's the notation for remote host > access. > > > Is there a workaround? (besides making a symlink w/o the : in > > the name or using another filename/path) > > I haven't tried this, but from looking at the man page, I might expect > > dump -f /path/to/dump/dir/some\:file > > to work... Sorry no, this way the colon is just escaped in the shell. > > -- > Lowell Gilbert, embedded/networking software engineer, Boston area: > resume/CV at http://be-well.ilk.org:8088/~lowell/resume/ > username/password "public" thanks anyway Ste
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040218154803.GB587>