A
Size: a a a
A
o👹
A
A
o👹
A
(list) list is executed in a subshell environment (see COMMAND EXECUTION ENVIRONMENT below). Variable assignments and builtin commands that affect the shell's environment do not remain in effect after the command completes.
The return status is the exit status of list.
{ list; }
list is simply executed in the current shell environment. list must be terminated with a newline or semicolon. This is known as a group command. The return status is the exit status of list. Note that unlike the
metacharacters ( and ), { and } are reserved words and must occur where a reserved word is permitted to be recognized. Since they do not cause a word break, they must be separated from list by whitespace or another
shell metacharacter.
o👹
AF
echo $(id -u)
- здесь без круглых никак. или можно?YS
echo $(id -u)
- здесь без круглых никак. или можно?id -u
, ты же все равно это в stdout выводишьAF
YS
YS
AF
docker run -it --rm -e "SNYK_TOKEN=${TOKEN}" -e "USER_ID=$(id -u)" -e "MONITOR=true" -v "${PWD}:/project" -v "${HOME}/.m2:/home/node/.m2" -v "${HOME}/.ivy2:/home/node/.ivy2" snyk/snyk-cli:1.347.1.maven-3.6.3_java11
- вот посложнееAF
o👹
июн 26 11:51:35 box.olegon.ru apcupsd[695]: Power is back. UPS running on mains.
июн 26 11:51:34 box.olegon.ru apcupsd[695]: Power failure.
L
июн 26 11:51:35 box.olegon.ru apcupsd[695]: Power is back. UPS running on mains.
июн 26 11:51:34 box.olegon.ru apcupsd[695]: Power failure.
L
o👹
L