Date: Tue, 12 May 1998 12:10:00 -0700 (PDT) From: woods@zeus.leitch.com (Greg A. Woods@planix.com (Greg A. Woods)) To: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/6550 Message-ID: <199805121910.MAA26269@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/6550; it has been noted by GNATS. From: woods@zeus.leitch.com (Greg A. Woods@planix.com (Greg A. Woods)) To: freebsd-gnats-submit@FreeBSD.ORG Cc: Subject: Re: bin/6550 Date: Tue, 12 May 1998 15:06:49 -0400 (EDT) [ On Mon, May 11, 1998 at 04:00:03 (-0700), Wolfram Schneider wrote: ] > Subject: Re: bin/6550 > > The current algorithm is > > if (no_meta_characters(command)) > exec(command) > else > /bin/sh -c "command" > > where it should be > > if (no_meta_characters(command) && no_shell_builtin(command)) > exec(command) > else > /bin/sh -c "command" Given the POSIX.2 Draft and the OpenGroup XPG specifications, this would better be expressed as: if (no_meta_characters(command) && no_POSIX_shell_builtins(command)) exec(command) else system(command) -- Greg A. Woods +1 416 443-1734 VE3TCP <gwoods@acm.org> <robohack!woods> Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805121910.MAA26269>