dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 45a2ed0cefd5d6d6aa2fad04cbaff40f03a18ff8
parent 2d0b711cfd15553f230ff270a2c19e3c8c53902a
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Fri, 20 Oct 2017 18:38:14 -0400

quote contents of STDIN variable

Diffstat:
Mlinks/bin/susan | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/links/bin/susan b/links/bin/susan @@ -1,8 +1,13 @@ #!/bin/bash + +# cmd-line args as message msg="$@" + +# use STDIN if no args are passed if [ $# -eq 0 ]; then - msg=`cat` + msg="$(cat)" fi + to="Susan Louise Damsgaard Sonnesen" #to="Anders Damsgaard"