From owner-freebsd-questions@FreeBSD.ORG Sun Feb 20 17:20:03 2005 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 A952716A4CE for ; Sun, 20 Feb 2005 17:20:03 +0000 (GMT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E1DA43D2F for ; Sun, 20 Feb 2005 17:20:03 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from localhost (pa-plum-cmts1e-68-68-113-64.pittpa.adelphia.net [68.68.113.64]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by internet.potentialtech.com (Postfix) with ESMTP id 81A7569A42; Sun, 20 Feb 2005 12:20:02 -0500 (EST) Date: Sun, 20 Feb 2005 12:20:01 -0500 From: Bill Moran To: Alejandro Pulver Message-Id: <20050220122001.5af0685e.wmoran@potentialtech.com> In-Reply-To: <20050220135717.27ab6a75@ale.varnet.bsd> References: <20050220135717.27ab6a75@ale.varnet.bsd> Organization: Potential Technologies X-Mailer: Sylpheed version 1.0.0rc (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Sun__20_Feb_2005_12_20_01_-0500_.a9M+=juCS4WdHW/" cc: freebsd-questions@freebsd.org Subject: Re: Shell file completion 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: Sun, 20 Feb 2005 17:20:03 -0000 --Signature=_Sun__20_Feb_2005_12_20_01_-0500_.a9M+=juCS4WdHW/ Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit [Please wrap your lines around 72 chars or so] Alejandro Pulver wrote: > Hello, > > I was learning regular expressions, and I noticed that the shell has > something similar (but it is different from regular expressions). > > When I type 'echo *', it replaces '*' for all the files/dirs not starting > with a '.' (dot). > > I understand the '*' in regular expressions must be preceded by other > thing to match it. > > So it is behaving like the DOS wildcards. That's funny. More like "DOS wildcards seem to mimic this". > Where is it documented? 'man sh' - the section on "Shell Patterns". -- Bill Moran Potential Technologies http://www.potentialtech.com --Signature=_Sun__20_Feb_2005_12_20_01_-0500_.a9M+=juCS4WdHW/ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCGMbBYOm/CGAEZUARAo7QAJ9oqeSdVhq5BrI0fSRWE+jdwXTvugCgqYGj VnAHorfi1PoMLb5yfyHWvW0= =kiqf -----END PGP SIGNATURE----- --Signature=_Sun__20_Feb_2005_12_20_01_-0500_.a9M+=juCS4WdHW/--