From owner-freebsd-questions@FreeBSD.ORG Wed Feb 18 07:48:39 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F00116A4CE for ; Wed, 18 Feb 2004 07:48:39 -0800 (PST) Received: from bender.bturtle.ch (unknown [213.200.251.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EF1C43D1D for ; Wed, 18 Feb 2004 07:48:38 -0800 (PST) (envelope-from bla@dayab.ch) Received: from bender.bturtle.ch (localhost.bturtle.ch [127.0.0.1]) by bender.bturtle.ch (8.12.10/8.12.9) with ESMTP id i1IFm5xi004974; Wed, 18 Feb 2004 16:48:05 +0100 (CET) (envelope-from bla@dayab.ch) Received: (from saes@localhost) by bender.bturtle.ch (8.12.10/8.12.9/Submit) id i1IFm4sN004973; Wed, 18 Feb 2004 16:48:04 +0100 (CET) X-Authentication-Warning: bender.bturtle.ch: saes set sender to bla@dayab.ch using -f Date: Wed, 18 Feb 2004 16:48:04 +0100 From: bla@dayab.ch To: Lowell Gilbert Message-ID: <20040218154803.GB587@bturtle.ch> References: <20040216210658.GB12702@bturtle.ch> <444qto8o5r.fsf@be-well.ilk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <444qto8o5r.fsf@be-well.ilk.org> User-Agent: Mutt/1.4.2i cc: bla@dayab.ch cc: freebsd-questions@freebsd.org Subject: Re: dump and : X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2004 15:48:39 -0000 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