From: Lyndon Nerenberg Date: Thu, 31 Jan 2013 07:07:17 +0000 (-0800) Subject: How hard can it be to write a portable shell function that does nothing? X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/5b2bae6c36887b9ed4d30f6ff877c3846fa1f3b6?hp=-c How hard can it be to write a portable shell function that does nothing? Pretty hard, apparently :-P --- 5b2bae6c36887b9ed4d30f6ff877c3846fa1f3b6 diff --git a/test/common.sh.in b/test/common.sh.in index cd99ad50..3c916274 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -96,8 +96,14 @@ if [ -t 1 ] ; then } else # don't emit anything if stdout is not connected to a tty. - progress_update () : - progress_done () : + progress_update () + { + : + } + progress_done () + { + : + } fi check_for_hard_links () {