From 084eeb10cbf9774516804067b82de8ba704dfdda Mon Sep 17 00:00:00 2001 From: tdro Date: Sat, 10 Apr 2021 23:36:03 -0400 Subject: .bashrc: Add shellquote comments --- .bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.bashrc b/.bashrc index 19526ca..624c3a6 100644 --- a/.bashrc +++ b/.bashrc @@ -123,6 +123,7 @@ history-remove-duplicates() { awk '!visited[$0]++' "$HOME/.bash_history" | spong docker-rootfs() { id=$(docker run -d "$1" /bin/true) && docker export "$id" -o "$2.tar" && docker container rm "$id"; } # https://til.simonwillison.net/bash/escaping-a-string +# press ctrl+d after writing string to standard input shellquote() { printf '%q\n' "$(cat)"; } # swallow -- cgit v1.2.3