[v3 PATCH 12/17] exec: Stricter pathopt parsing

2018-05-18 Thread Herbert Xu
This patch changes the parsing of pathopt. First of all only %builtin and %func (with arbitrary suffixes) will be recognised. Any other pathopt will be treated as a normal directory. Furthermore, pathopt can now be specified before the directory, rather than after it. In fact, a future version m

[v2 PATCH] exec: Stricter pathopt parsing

2018-05-15 Thread Herbert Xu
On Tue, May 15, 2018 at 11:56:57PM +0200, Jilles Tjoelker wrote: > > Some examples/testcases would make this clearer. I wanted to keep this undocumented because it's nonstandard and we may have to change this later. > Note that this also affects CDPATH (good) and MAILPATH (breaks its > undocumen

Re: exec: Stricter pathopt parsing

2018-05-15 Thread Jilles Tjoelker
On Tue, May 15, 2018 at 04:49:51PM +0800, Herbert Xu wrote: > This patch changes the parsing of pathopt. First of all only > %builtin and %func (with arbitrary suffixes) will be recognised. > Any other pathopt will be treated as a normal directory. > Furthermore, pathopt can now be specified befo

exec: Stricter pathopt parsing

2018-05-15 Thread Herbert Xu
This patch changes the parsing of pathopt. First of all only %builtin and %func (with arbitrary suffixes) will be recognised. Any other pathopt will be treated as a normal directory. Furthermore, pathopt can now be specified before the directory, rather than after it. In fact, a future version m