From owner-freebsd-current@FreeBSD.ORG Fri Jun 6 06:10:45 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D4FA37B401 for ; Fri, 6 Jun 2003 06:10:45 -0700 (PDT) Received: from comp.chem.msu.su (comp-ext.chem.msu.su [158.250.32.157]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D5BA43FB1 for ; Fri, 6 Jun 2003 06:10:40 -0700 (PDT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.12.3p2/8.12.3) with ESMTP id h56DAVSH065235; Fri, 6 Jun 2003 17:10:31 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.12.3p2/8.12.3/Submit) id h56DALKi065216; Fri, 6 Jun 2003 17:10:21 +0400 (MSD) (envelope-from yar) Date: Fri, 6 Jun 2003 17:10:21 +0400 From: Yar Tikhiy To: Kris Kennaway Message-ID: <20030606131021.GA64498@comp.chem.msu.su> References: <20030214233406.GA3814@rot13.obsecurity.org> <20030214233749.GB3888@rot13.obsecurity.org> <20030215144637.GA45693@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030215144637.GA45693@comp.chem.msu.su> User-Agent: Mutt/1.5.3i cc: buildadm@jp.FreeBSD.org cc: current@FreeBSD.ORG Subject: Re: FTP and command-line multiple downloads X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jun 2003 13:10:45 -0000 On Sat, Feb 15, 2003 at 05:46:37PM +0300, Yar Tikhiy wrote: > On Fri, Feb 14, 2003 at 03:37:49PM -0800, Kris Kennaway wrote: > > On Fri, Feb 14, 2003 at 03:34:06PM -0800, Kris Kennaway wrote: > > > Since upgrading bento to running 5.0, it appears that I can no longer > > > download multiple files from a FTP server by specifying a glob pattern > > > on the command-line: > > > > > > e.g. > > > > > > /usr/bin/ftp -4a ftp://snapshots.jp.freebsd.org/pub/FreeBSD/snapshots/alpha/5-LATEST/base/base.\?\? > > > > This appears to work (as it used to) under 4.x. > > As far as I can see, this is a client-side problem of CURRENT's > ftp(1). FreeBSD ftp(1) was completely replaced with "lukemftp," > ftp client from NetBSD, in CURRENT a year ago. The commit message > was promising: > > ...Lukemftp supports most of the previous features of FreeBSD > ftp, but has been better maintained and includes new features. > > Unfortunately, this particular feature doesn't fall into that most; > "lukemftp" can't seem to detect a glob pattern on the command line. I must admit that I overlooked this feature in lukemftp. In fact, lukemftp can download multiple files specified as a wildcard via ftp. However, lukemftp accepts wildcards only in the "classic" ftp file specification, i.e., host:path/file, and not in URLs. Do you think the ability to use command-line wildcards should be extended to URLs as well? Luke Mewburn may be convinced to do that in his ftp client. Technically, the task is as easy as removing a single logical subexpression from an "if" statement. -- Yar