#!/bin/sh -
-# $OpenBSD: makelintstub.sh,v 1.8 2009/06/03 14:45:47 jj Exp $
+# $OpenBSD: makelintstub.sh,v 1.9 2010/07/24 23:32:52 guenther Exp $
# $NetBSD: makelintstub,v 1.2 1997/11/05 05:46:18 thorpej Exp $
#
# Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved.
syscallname="$2"
funcname="$3"
- arglist="`printf '#include "'"$syscallhdr"'"' | cpp -C | \
+ arglist=$(printf '#include "%s"\n' "$syscallhdr" | cpp -C | \
grep '^/\* syscall: "'"$syscallname"'" ' | \
- sed -e 's,^/\* syscall: ,,;s, \*/$,,'`"
+ sed -e 's,^/\* syscall: ,,;s, \*/$,,')
eval set -f -- "$arglist"