Imported from ../bash-2.05b.tar.gz.
[platform/upstream/bash.git] / examples / functions / manpage
index 3fdc7ac..224643e 100644 (file)
@@ -25,7 +25,7 @@ function manpage ()
     set $file
     file="$1"
     if [ -f "$file" ]; then
-      zot=$(head -1 "$file")
+      zot=$(sed 1q "$file")
       cmd=${MANROFF:-"nroff -man - | col | cat -s"}
       h=${zot##"'"'\"'}
       if [ "$h" != "$zot" ]; then