Re: maybe a bug in bash?

2023-06-30 Thread Sebastian Luhnburg
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

Re: maybe a bug in bash?

2023-06-30 Thread Sebastian Luhnburg
#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

maybe a bug in bash?

2023-06-29 Thread Sebastian Luhnburg
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

maybe a bug in bash?

2023-06-29 Thread Sebastian Luhnburg
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