From owner-freebsd-questions Mon Mar 3 16:14:30 2003 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 71D8437B401 for ; Mon, 3 Mar 2003 16:14:28 -0800 (PST) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id E18B243FCB for ; Mon, 3 Mar 2003 16:14:26 -0800 (PST) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id CAEE651A55; Tue, 4 Mar 2003 10:44:57 +1030 (CST) Date: Tue, 4 Mar 2003 10:44:57 +1030 From: Greg 'groggy' Lehey To: Rus Foster Cc: abc@dialups-247.anchorage.mtaonline.net, freebsd-questions Subject: Re: cd * Message-ID: <20030304001457.GH13573@wantadilla.lemis.com> References: <200302280342.h1S3glH0029968@en26.dialups-247.anchorage.mtaonline.net> <20030303105508.D61837@thor.65535.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="X+8siUETKMkW99st" Content-Disposition: inline In-Reply-To: <20030303105508.D61837@thor.65535.net> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --X+8siUETKMkW99st Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Monday, 3 March 2003 at 10:57:01 -0800, Rus Foster wrote: > On Fri, 28 Feb 2003 abc@dialups-247.anchorage.mtaonline.net wrote: > >> FBSD-4.7R >> >> on other BSD's, and with ftp(1), 'cd x*' will cd >> to the 1st match. FBSD used to work this way >> as well a few minor versions ago. >> >> these days it crashes with 'too many arguments' >> if there is more than one match. i 'object' >> to this behavior :) i would like to report >> it as a bug ... is there a good reason for >> it's current behavior? > > Its not FBSD rather than the shell expansion. Depending on the shell it > will act in different ways. So best advice would be either hack the shell > source code or find a shell with different behaviour It's not a good idea to rely on this kind of misfeature. I'd recommend using a shell with file name completion, such as bash or tcsh. Then you can press the tab key instead of * and see what you're changing to. Greg -- See complete headers for address and phone numbers Please note: we block mail from major spammers, notably yahoo.com. See http://www.lemis.com/yahoospam.html for further details. --X+8siUETKMkW99st Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+Y/ABIubykFB6QiMRAtCYAJ4oq4vrVqk4n6/Do/sM0p3/dxMWKACgg3y5 H+dA2L1EV9bdRYt1as261ks= =Fg6n -----END PGP SIGNATURE----- --X+8siUETKMkW99st-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message