ash: if using libc glob(), skip it if no metachars are in word
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 30 Oct 2016 17:41:01 +0000 (18:41 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 30 Oct 2016 17:41:01 +0000 (18:41 +0100)
commitd4f3db9427c443b2709fc9a00bc46d8a71be806b
treef71b9fd8f2eb1509621ec434fb9b664928f637dc
parent474ed06c3939391cbfd7b70bf4960403ae166762
ash: if using libc glob(), skip it if no metachars are in word

This saves making tons of pointless stat() calls

function                                             old     new   delta
expandarg                                            888     921     +33

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c