On 2020-12-10 13:56, Herbert Xu wrote: > Aurelien Jarno <aurelien@xxxxxxxxxxx> wrote: > > > > Can you please describe more precisely what is the problem with glob(3)? > > It's stripping trailing slashes from the pattern, even when the > name in question is a regular file. > > https://patchwork.kernel.org/project/dash/patch/20201116025222.GA28742@xxxxxxxxxxxxxxxxxxx/ That's the dash symptoms. glob(3) takes a pattern and just returns the paths matching the pattern, as they are named on the filesystem. That said, the option GLOB_MARK can return a trailing slash for all matched path that are a directory. -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@xxxxxxxxxxx http://www.aurel32.net