Maj terminée. Pour consulter la release notes associée voici le lien :

Commit 1bd6d4c2 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

should-to-tap: Bash may remove (or not) trailing whitespaces.

parent a973c9dd
......@@ -170,6 +170,10 @@ while read line; do
pattern=$(cut -d: -f2- <<< "$line")
nb_hits=$(cut -d: -f1 <<< "$line")
# Remove trailing whitespaces.
# Depending on Bash version they are not handled in the same way → uniformize
pattern=$(sed -e 's/^\s*//' <<< "$pattern")
# Escape special characters for sed
pattern=$(sed -e 's/[/&]/\\&/g' <<< $pattern)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment