regex help

Linux for blind general discussion blinux-list at redhat.com
Wed Feb 9 20:24:43 UTC 2022


Hi,

Just a small nitpick inline

Le 09/02/2022 à 20:43, Linux for blind general discussion a écrit :
> Tim here, replying inline again

> You've got it!  It expands the filenames at the shell level, before
> handing it off to the program, so it works with multiple items as
> well, such as
> 
>   $ mkdir -p Mail/work/{cur,new,tmp}
> 
> which expands to the same as
> 
>   $ mkdir -p Mail/work/cur Mail/work/new Mail/work/tmp

Be aware that brace expansion is undefined in POSIX sh, so it works using bash
but could fail using other shells.	

Cheers,
Didier
--
Didier Spaier
Slint maintainer





More information about the Blinux-list mailing list