Go to the first, previous, next, last section, table of contents.


Brace expansion

`x{a,b}y' expands to `xay:xby'. For example:

foo/{1,2}/baz

expands to `foo1baz:foo2baz'. `:' is the path separator on the current system; e.g., on a DOS system, it's `;'.

Braces can be nested; for example, `x{a,b{1,2}}y' expands to `xay:xb1y:xb2y'.

This feature can be used to implement multiple TeX hierarchies, by assigning a brace list to $TEXMF, as mentioned in `texmf.cnf.in'.

Brace expansion is implemented in the source file `kpathsea/expand.c'. It is taken from Bash, and is thus covered by the GNU General Public License, rather than the Library General Public License that covers the rest of Kpathsea.


Go to the first, previous, next, last section, table of contents.