Bug 29557 - Ошибка обрезания пробельных символов с квадратными скобками
Summary: Ошибка обрезания пробельных символов с квадратными скобками
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: libshell (show other bugs)
Version: unstable
Hardware: all Linux
: P3 critical
Assignee: Alexey Gladkov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-06 18:38 MSK by Andrey Cherepanov
Modified: 2013-11-07 23:36 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Cherepanov 2013-11-06 18:38:32 MSK
Если в значении встречаются квадратные скобки (как открывающая, так и закрывающая), то обрезание утраивает (!) результат.

[cas@cas ~]$ . shell-var
[cas@cas ~]$ shell_var_trim zz '   Comment(en) '; echo "=$zz="
=Comment(en)=
[cas@cas ~]$ shell_var_trim zz '   Comment[en] '; echo "=$zz="
=Comment[en]   Comment[en] Comment[en]=
Comment 1 Alexey Gladkov 2013-11-07 12:02:34 MSK
Проверь пожалуйста: git.alt:/people/legion/packages/libshell.git
Comment 2 Andrey Cherepanov 2013-11-07 14:12:19 MSK
(В ответ на комментарий №1)
> Проверь пожалуйста: git.alt:/people/legion/packages/libshell.git
Работает, спасибо.
Comment 3 Repository Robot 2013-11-07 23:36:45 MSK
libshell-0.1.9-alt1 -> sisyphus:

* Thu Nov 07 2013 Alexey Gladkov <legion@altlinux> 0.1.9-alt1
- Add functions to daemonize process.
- Add logger support.
- Reimplement shell_var_trim function (ALT#29557).