[PATCH] Ash support for replace and subsitution
James Simmons
jsimmons at infradead.org
Mon Mar 24 09:51:26 PDT 2008
> On Mon, 2008-03-24 at 16:17 +0000, James Simmons wrote:
> > +#define VSSUBSTR 0xc /* ${var:position:length} */
> > +#define VSREPLACE 0xd /* ${var/pattern/replacement} */
> > +#define VSREPLACEALL 0xe /* ${var//pattern/replacement} */
>
> These are not valid capabilities of a POSIX shell; they are bash
> extensions.
>
> Personally I don't think they belong in ash, which is (IIRC) supposed to
> be a POSIX shell implementation, but if they are added please create a
> separate configuration option "NON_POSIX_EXTENSIONS" or something so
> people can elect to leave them out.
I have no problem with a NON_POSIX_EXTENSIONS. Is this true with the other
patches I posted?
More information about the busybox
mailing list