From owner-freebsd-bugs Tue May 12 12:13:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA04035 for freebsd-bugs-outgoing; Tue, 12 May 1998 12:13:34 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA04019 for ; Tue, 12 May 1998 12:13:31 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id MAA26269; Tue, 12 May 1998 12:10:00 -0700 (PDT) Date: Tue, 12 May 1998 12:10:00 -0700 (PDT) Message-Id: <199805121910.MAA26269@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: woods@zeus.leitch.com (Greg A. Woods@planix.com (Greg A. Woods)) Subject: Re: bin/6550 Reply-To: woods@zeus.leitch.com (Greg A. Woods@planix.com (Greg A. Woods)) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 Planix, Inc. ; Secrets of the Weird To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message