give the echo command a -e option so it behaves as expected in Linux and BSD; closes #1
1 files changed, 2 insertions(+), 2 deletions(-) M dpaste.sh
M dpaste.sh +2 -2
@@ 35,10 35,10 @@ while getopts hs:t:p:e: opt; do done shift "$((OPTIND-1))" -echo "Paste your content now, ^D to submit.\n---" +echo -e "Paste your content now, ^D to submit.\n---" # make the API call url=$(curl -s -F "content=<-" $params http://dpaste.com/api/v2/) -echo "---\n$url" +echo -e "---\n$url" # open the resulting paste xdg-open $url