Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Aug 2009 20:45:53 +0200
From:      Johan van Selst <johans@stack.nl>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Problem in bin/sh stripping the * character through ${expansion%}
Message-ID:  <20090806184553.GA68649@mud.stack.nl>
In-Reply-To: <20090806183846.GA68029@mud.stack.nl>
References:  <4A7B1DB0.1040602@FreeBSD.org> <20090806183846.GA68029@mud.stack.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090806184553.GA68649>