aboutsummaryrefslogtreecommitdiffstats
path: root/examples/functions/manpage
diff options
context:
space:
mode:
Diffstat (limited to 'examples/functions/manpage')
-rw-r--r--examples/functions/manpage2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/functions/manpage b/examples/functions/manpage
index 3fdc7ac..224643e 100644
--- a/examples/functions/manpage
+++ b/examples/functions/manpage
@@ -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