Skip to content

Commit 72e5f02

Browse files
committed
ag: compatibility tweaks
1 parent 40477a7 commit 72e5f02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ag

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function readlinkf() {
1212
TARGET=$(basename "${TARGET}")
1313
done
1414

15-
echo "$(pwd -P)/${TARGET}"
15+
printf "$(pwd -P)/${TARGET}\n"
1616
}
1717

1818
ME=$(readlinkf "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/ag")
@@ -25,7 +25,7 @@ for candidate in $(which -a $(basename "$0")); do
2525
done
2626

2727
if [ -z "${REAL}" ]; then
28-
echo "$(basename "$0") not found" >&2
28+
printf "%s not found\n" "$(basename "$0")" >&2
2929
exit 1
3030
fi
3131

0 commit comments

Comments
 (0)