From c4d9e58d7802702770de128494eba2294c2bc827 Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Wed, 30 Jan 2019 10:21:37 -0800 Subject: [PATCH] eventing/samples/pubsub: fix copy paste issue (#828) * eventing/samples/pubsub: fix copy paste issue See the line I changed, when I paste it to my zsh terminal, it thinks the closing double-quote is missing. Turns out the !" is a special sequence in zsh so it's better not to end a sample command like this. Source: https://unix.stackexchange.com/questions/497328/zsh-thinks-unterminated-quote-if-preceded-by-exclamation-mark/497335#497335 Signed-off-by: Ahmet Alp Balkan * Remove comma, match up quotation marks --- eventing/samples/gcp-pubsub-source/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eventing/samples/gcp-pubsub-source/README.md b/eventing/samples/gcp-pubsub-source/README.md index d235b456b..d078c9ffc 100644 --- a/eventing/samples/gcp-pubsub-source/README.md +++ b/eventing/samples/gcp-pubsub-source/README.md @@ -132,7 +132,7 @@ source is most useful as a bridge from other GCP services, such as Publish messages to your GCP PubSub Topic: ```shell -gcloud pubsub topics publish testing --message="Hello World!" +gcloud pubsub topics publish testing --message="Hello world" ``` ## Verify @@ -164,7 +164,7 @@ You should see log lines similar to: ```json { "ID": "284375451531353", - "Data": "SGVsbG8gV29ybGQh", + "Data": "SGVsbG8sIHdvcmxk", "Attributes": null, "PublishTime": "2018-10-31T00:00:00.00Z" } @@ -175,10 +175,10 @@ you [base-64 decode](https://www.base64decode.org/) the `Data` field, you should see the sent message: ```shell -echo "SGVsbG8gV29ybGQh" | base64 --decode +echo "SGVsbG8sIHdvcmxk" | base64 --decode ``` -Results in: `Hello World!". +Results in: "Hello world" For more information about the format of the message, see the [PubsubMessage documentation](https://cloud.google.com/pubsub/docs/reference/rest/v1/PubsubMessage).