commands). To get the
input via an password manager (like Bitwarden CLI) is at this point the
better way I think (code injection stay be a problem, if I use the
passwords in an awkward way in my script).
Mit freundlichen Grüßen
Sebastian Luhnburg
IT
#x27;$abc&xyz'\'''
password in subshell in here document: ''\''&xyz'\'''
p.s.: in the final script, it is only one SSH:
ssh user@machine << EOF
/bin/bash -c "do something with the password"
EOF
Mit fr
ord in here document: " ${password@Q}
/bin/bash -c "echo 'password in subshell in here document: ' ${password@Q}"
EOF
The output:
initial password: $abc&xyz
initial password with escaped characters: \$abc\&xyz
password in here document: \$abc\&xyz
password in
nt: \$abc\&xyz
password in subshell in here document: $abc\&xyz
Thank you very much!
Mit freundlichen Grüßen Sebastian Luhnburg IT
--
swp software systems GmbH & Co. KG Königsbrücker Straße 124 01099
Dresden Tel: 0351-492