From c16a5dfa44b98b431a08fdc6d2415ac89131b239 Mon Sep 17 00:00:00 2001 From: redg3ar Date: Tue, 2 Oct 2018 14:00:08 -0400 Subject: [PATCH] Fix the encoding command to be compatible with ZSH I haven't tested the mac version because I do not have access to one. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 088b72f..0391a96 100644 --- a/README.md +++ b/README.md @@ -27,11 +27,11 @@ One simple way to host is to [forward a domain](https://support.google.com/domai ## Generating links programatically Encoding (Mac) -```echo -n 'hello world' | lzma -9 | base64 | printf "https://itty.bitty.site/#/%s\n" "$(cat -)"``` +```echo -n 'hello world' | lzma -9 | base64 | xargs -0 printf "https://itty.bitty.site/#/%s\n"``` Encoding (Linux) -```echo -n 'hello world' | lzma -9 | base64 -w0 | printf "https://itty.bitty.site/#/%s\n" "$(cat -)"``` +```echo -n 'hello world' | lzma -9 | base64 -w0 | xargs -0 printf "https://itty.bitty.site/#/%s\n"``` Encoding (Win Git/WSL)