/
githubmirror
/
rsyslog
Обзор
Документация
Войти
/
githubmirror
/
rsyslog
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/rscript_backticks_static_text.sh
21 строка
567 B
Rainer Gerhards
rainerscript: backticks support ${VAR} and adjacent text
15 авг 2025, 15:43
Не верифицирован
15 авг 2025, 15:43
13ca403
Код
Авторство
О чём код?
#!/bin/bash ## Validate that backticks with `echo` expand environment variables even ## when punctuation is directly attached to the name. . ${srcdir:=.}/diag.sh init generate_conf add_conf ' template(name="outfmt" type="list") { property(name="msg" field.delimiter="58" field.number="2") constant(value="\n") } if `echo Prefix-$MYVAR!` == "Prefix-42!" and $msg contains "msgnum" then action(type="omfile" file=`echo $RSYSLOG_OUT_LOG` template="outfmt") ' export MYVAR=42 startup injectmsg 0 1 shutdown_when_empty wait_shutdown seq_check 0 0 exit_test