| Summary: | glob() in ash is overused | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | Przemysław Pawełczyk <przemoc> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED WONTFIX | ||
| Severity: | normal | CC: | busybox-cvs |
| Priority: | P5 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
Przemysław Pawełczyk
2017-01-05 00:57:09 UTC
echo "$X" does not need to glob(), true. But think about this: echo "$X"*.txt This _does_ need to be globbed. ash code does not have any special smart code to detect when entire word is quoted. It will attempt globbing even for "$X" (it escapes any ? or * in $X, so that they won't be used as wildcards). BTW, hush works similarly. There is no escaping the fact that glob() in libc is required to work properly. |