* Mono <mono _at_ posteo _dot_ de> [2013-08-16 08:04:56 +0200]: > how about having an sed command insert -W interactive during > installation, only if mawk is detected? hmm, just an idea. That sounds kind-of hacky, but it gave me a nice idea. What about something like this, in the actual script: if awk -Wv 2>/dev/null | head -1 | grep -q '^mawk'; then awk_args=('-W' 'interactive') else awk_args=() fi # ... awk "${awk_args[@]}" ... Though I should probably test how fflush() actually behaves for all these versions of awk. Florian -- www.the-compiler.org | Top-posting sucks! http://s.cmpl.cc/top I love long mails! | http://email.is-not-s.ms/ There appears to be irrefutable evidence that the mere fact of overcrowding induces violence. -- Harvey Wheeler
Attachment:
pgpNpGWMEdn87.pgp
Description: PGP signature