Skip to content

Commit

Permalink
Remove \n' from quote' target.
Browse files Browse the repository at this point in the history
`\' cannot escape newline.
  • Loading branch information
Wei Dai committed Jul 9, 2012
1 parent 1f65121 commit 932f780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion undo
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ command="$1" && shift
# Shell quote an argument.
# Synopsis: quote argument
quote() {
printf '%s\n' "$1" | sed 's/\([|&;<>()$`\\"'"'"' \n*?#~=%\[]\)/\\\1/g'
printf '%s\n' "$1" | sed 's/\([|&;<>()$`\\"'"'"' *?#~=%\[]\)/\\\1/g'
}

# Print messages to STDERR and exit with given exit code.
Expand Down

0 comments on commit 932f780

Please sign in to comment.