Date: Tue, 4 Mar 2003 10:44:57 +1030 From: Greg 'groggy' Lehey <grog@FreeBSD.org> To: Rus Foster <rghf@fsck.me.uk> Cc: abc@dialups-247.anchorage.mtaonline.net, freebsd-questions <questions@FreeBSD.ORG> Subject: Re: cd * Message-ID: <20030304001457.GH13573@wantadilla.lemis.com> In-Reply-To: <20030303105508.D61837@thor.65535.net> References: <200302280342.h1S3glH0029968@en26.dialups-247.anchorage.mtaonline.net> <20030303105508.D61837@thor.65535.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030304001457.GH13573>