| Summary: | обрабатываются лишние файлы в /etc/net/options.d/* (rpmsave) | ||
|---|---|---|---|
| Product: | Branch 3.0 | Reporter: | Sergey Y. Afonin <asy> |
| Component: | etcnet | Assignee: | Denis Ovsienko <pilot> |
| Status: | CLOSED FIXED | QA Contact: | Andrey Cherepanov <cas> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 3.0 | ||
| Hardware: | all | ||
| OS: | Linux | ||
В Сизифе уже исправлено оказывается, перевешиваю на 3.0 Обновить бы тогда. Упорядоченность списка обеспечивается sh при раскрытии шаблона (цитирую из man
bash):
LC_CTYPE
This variable determines the interpretation of characters and
the behavior of character classes within pathname expansion and
pattern matching.
[...]
Pathname Expansion
After word splitting, unless the -f option has been set, bash scans
each word for the characters *, ?, and [. If one of these characters
appears, then the word is regarded as a pattern, and replaced with an
alphabetically sorted list of file names matching the pattern. If no
Запрос обновить для C3.0 принимается.
Помещено в ветку etcnet-0.7-maintenance, будет включено в версию 0.7.17. |
> pickup_defaults() > { > for optionsfile in /etc/net/options /etc/net/options.d/*; do > [ -s "$optionsfile" ] && . $optionsfile > done хватает всё, но, при установке, могут появиться файлы *.rpmsave. Надо бы придумать исключение. При этом, видимо, стоит сделать исключение конфигурируемым в рассчёте на какие-нибудь другие пакетные менеджеры. Отдельный момент. Где-то гарантируется, что for ... in ... будет работать с сортированным списком ?