ensure newline is expanded

echo from GNU coreutils requires -e to interpret backslash escape sequences

without this, the encrypted file contains `\ntest message`
This commit is contained in:
Adam Monsen 2025-01-12 06:43:45 -08:00 committed by GitHub
parent 219423db05
commit 6c77d5dbe6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1074,7 +1074,7 @@ YubiKey is now ready for use!
Encrypt a message to yourself (useful for storing credentials or protecting backups):
```console
echo "\ntest message string" | \
echo -e "\ntest message string" | \
gpg --encrypt --armor \
--recipient $KEYID --output encrypted.txt
```