我有以下命令:
python -c 'import crypt; print(crypt.crypt("$Password", crypt.mksalt(crypt.METHOD_SHA512)))'
$Passwordshell变量在哪里。如何将其正确扩展为变量,而不是将其视为文字?
$Password
shell bash python quoting
bash ×1
python ×1
quoting ×1
shell ×1