From 2fdaa4bdc797129b41d07a129e7d7b56157ba9ab Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 7 May 2012 23:09:56 +0200 Subject: Replace -n option to echo with | tr -d "\n" The echo builtin on darwin doesn't support any options and will output them. References: https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/echo.1.html Signed-off-by: Florian Pritz --- fb.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fb.in b/fb.in index bd15407..46d3541 100644 --- a/fb.in +++ b/fb.in @@ -300,7 +300,7 @@ else fi if [ "$CLIPBOARD" != "" ]; then - type $CLIPBOARD_CMD >/dev/null 2>&1 && echo -n $CLIPBOARD | nohup $CLIPBOARD_CMD >/dev/null 2>&1 + type $CLIPBOARD_CMD >/dev/null 2>&1 && echo $CLIPBOARD | tr -d "\n" | nohup $CLIPBOARD_CMD >/dev/null 2>&1 fi exit $EXITCODE -- cgit v1.2.3-24-g4f1b