[Buildroot] [PATCH 1/1] fs/common.mk: use find instead of shell glob patterns

David Laight David.Laight at ACULAB.COM
Thu Mar 10 10:45:41 UTC 2022


From: Mathieu Mirmont
> Sent: 10 March 2022 10:18
> 
> Different shells can have different behaviours when it comes to
> globbing patterns. The dash shell (/bin/sh) on Debian testing switched
> to a different fnmatch/glob implementation that results in this new
> behaviour:
> 
> Using bash:
> $ mkdir /tmp/foo
> $ echo /tmp/foo/.[^.]*
> /tmp/foo/.[^.]*
> 
> Using dash:
> $ mkdir /tmp/foo
> $ echo /tmp/foo/.[^.]*
> /tmp/foo/..

That is just broken.
Does the [^x] pattern work at all?

Raise a bug on 'Debian testing' hopefully they'll
fix it before it actually gets released anywhere.

For this script I'd just ignore errors from rm.

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)


More information about the buildroot mailing list