diff --git a/changelog/9081.txt b/changelog/9081.txt new file mode 100644 index 000000000..03045e49d --- /dev/null +++ b/changelog/9081.txt @@ -0,0 +1,4 @@ + +```release-note:improvement +website/docs: changed to echo for all string examples instead of (<<<) here-string. +``` diff --git a/website/content/api-docs/secret/transit.mdx b/website/content/api-docs/secret/transit.mdx index c10a8b744..4f426b096 100644 --- a/website/content/api-docs/secret/transit.mdx +++ b/website/content/api-docs/secret/transit.mdx @@ -577,7 +577,7 @@ mechanism for this data as part of a JSON payload is to base64-encode it. Fist, encode the plaintext with base64: ```shell-session -$ base64 <<< "the quick brown fox" +$ echo "the quick brown fox" | base64 dGhlIHF1aWNrIGJyb3duIGZveAo= ``` diff --git a/website/content/docs/secrets/consul.mdx b/website/content/docs/secrets/consul.mdx index 55fb22026..0f5028001 100644 --- a/website/content/docs/secrets/consul.mdx +++ b/website/content/docs/secrets/consul.mdx @@ -131,7 +131,7 @@ management tool. Write a policy and proceed to link it to the role: ```shell-session - $ vault write consul/roles/my-role policy="$(base64 <<< 'key "" { policy = "read" }')" + $ vault write consul/roles/my-role policy="$(echo 'key "" { policy = "read" }' | base64)" Success! Data written to: consul/roles/my-role ``` diff --git a/website/content/docs/secrets/transit/index.mdx b/website/content/docs/secrets/transit/index.mdx index 0bfa8363d..9dcf37717 100644 --- a/website/content/docs/secrets/transit/index.mdx +++ b/website/content/docs/secrets/transit/index.mdx @@ -155,7 +155,7 @@ the proper permission, it can use this secrets engine. mechanism for this data as part of a JSON payload is to base64-encode it. ```text - $ vault write transit/encrypt/my-key plaintext=$(base64 <<< "my secret data") + $ vault write transit/encrypt/my-key plaintext=$(echo "my secret data" | base64) Key Value --- -----