ZSH и GDBM Поддержка

POSIXly:

pax -rs ':^backup:restore:' backup-date.tar

С GNU tar :

tar --transform='s:^backup:restore:' -xf backup-date.tar

С bsdtar:

tar -'s:^backup:restore:' -xf backup-date.tar
0
22.09.2018, 22:12
1 ответ

Документация в INSTALL на github включает следующее примечание (s):

--enable-pcre:

Zsh has a module which allows the pcre regular expression library to be used via shell builtins. Compiling this library into the shell with dynamic loading (the default where available) produces a dependency on the library libpcre.so. This is a problem on systems where zsh needs to be available at boot before the directory containing libpcre.so (for example /usr/lib or /usr/local/lib) is mounted. For this reason, pcre support will only be searched for if the option --enable-pcre is passed to configure.

Таким образом, параметр определяет, будет ли ваш zshфункционировать как оболочка «системного» уровня, которая может работать без внешних зависимостей (, таких как размонтированная папка lib ).

Что касается модуля gdbm , в документации указано

The zsh/db/gdbm module is used to create "tied" associative arrays that interface to database files. If the GDBM interface is not available, the builtins defined by this module will report an error. This module is also intended as a prototype for creating additional database interfaces, so the ztie builtin may move to a more generic module in the future.

0
28.01.2020, 04:13

Теги

Похожие вопросы