Permalink
Browse files

Use perl instead of bashism.

  • Loading branch information...
1 parent b7b29ca commit 1d1cd426731f0aec327f73923be6887065452599 @schuetzm schuetzm committed Dec 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test-mktemp
View
@@ -41,7 +41,7 @@ testfun () {
STATUS=$?
if [ $STATUS = 0 -a -n "$TEMP_FILE" -a -f "$TEMP_FILE" ]; then
rm -f $TEMP_FILE
- echo "${MKTEMP/$/\\$}"
+ echo "$MKTEMP" | perl -pne 's/\$/\\\$/'
exit
else
rm -f $TEMP_FILE

0 comments on commit 1d1cd42

Please sign in to comment.