From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 6 18:45:57 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46D8B1065674; Thu, 6 Aug 2009 18:45:57 +0000 (UTC) (envelope-from johans@stack.nl) Received: from mx1.stack.nl (relay04.stack.nl [IPv6:2001:610:1108:5010::107]) by mx1.freebsd.org (Postfix) with ESMTP id 004168FC17; Thu, 6 Aug 2009 18:45:56 +0000 (UTC) Received: by mx1.stack.nl (Postfix, from userid 65534) id CD608375B55; Thu, 6 Aug 2009 20:45:55 +0200 (CEST) X-Spam-DCC: CTc-dcc1: scanner01.stack.nl 1030; Body=1 Fuz1=1 Fuz2=1 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on scanner01.stack.nl X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Relay-Country: _RELAYCOUNTRY_ Received: from mud.stack.nl (mud.stack.nl [IPv6:2001:610:1108:5011:230:48ff:fe12:2794]) by mx1.stack.nl (Postfix) with ESMTP id F3140375B27; Thu, 6 Aug 2009 20:45:53 +0200 (CEST) Received: by mud.stack.nl (Postfix, from userid 801) id C343211453; Thu, 6 Aug 2009 20:45:53 +0200 (CEST) Date: Thu, 6 Aug 2009 20:45:53 +0200 From: Johan van Selst To: Doug Barton Message-ID: <20090806184553.GA68649@mud.stack.nl> References: <4A7B1DB0.1040602@FreeBSD.org> <20090806183846.GA68029@mud.stack.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: <20090806183846.GA68029@mud.stack.nl> User-Agent: Mutt/1.5.19 (2009-01-14) Cc: freebsd-hackers@freebsd.org Subject: Re: Problem in bin/sh stripping the * character through ${expansion%} X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Aug 2009 18:45:57 -0000 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Johan van Selst wrote: > When I tried it myself, I automatically typed quotes, which does work > var="${var%\*}" Really should learn to read better: this in fact procudes 'foo' rather than 'foo\' in the given example case. Again, not like bash. Johan --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iEYEAREIAAYFAkp7JOEACgkQaOElK32lxTve4ACdHk4H+cfNV/aPabu0Dy1QndpF oeAAoJPmylhOxJLCVVZi6GyFvn632fGb =e0lz -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI--