]> diplodocus.org Git - nmh/blobdiff - uip/mhmail
More tests, but not quite there yet.
[nmh] / uip / mhmail
index a00d7cc983f8f61428c379c644a98045d6484069..916732d8f502c0f5d68fc9e18d5c415fbdb1adaf 100755 (executable)
@@ -50,11 +50,10 @@ finddir() {
 
 bindir=`finddir $0`
 nmhbindir=`cd "$bindir" && pwd`
-if printf 'OK\n' | tail -n 1 2>&1 | grep OK >/dev/null; then
-    tail='tail -n'
-else
-    tail='tail -'
-fi
+case `printf 'OK\n' | tail -n 1 2>&1` in
+  OK) tail='tail -n ' ;;
+  *)  tail='tail -' ;;
+esac
 
 
 #### Checks for missing mandatory arguments.