From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32115 invoked by alias); 25 Jul 2015 07:54:23 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 32104 invoked by uid 89); 25 Jul 2015 07:54:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-HELO: mail-out.m-online.net Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Sat, 25 Jul 2015 07:54:21 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3mdfmm196Fz3hhcW; Sat, 25 Jul 2015 09:54:15 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3mdfml1fCYzvh22; Sat, 25 Jul 2015 09:54:15 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id iPF6C9U5Z3wN; Sat, 25 Jul 2015 09:54:14 +0200 (CEST) X-Auth-Info: Svvx2yikMsLRMkiGhneMbpKg0fECWVBKcdD0TuxciP7E14oouSL4btVAKw+XT58U Received: from linux.local (host-188-174-209-152.customer.m-online.net [188.174.209.152]) by mail.mnet-online.de (Postfix) with ESMTPA; Sat, 25 Jul 2015 09:54:14 +0200 (CEST) Received: by linux.local (Postfix, from userid 501) id 1FF9E1E52FE; Sat, 25 Jul 2015 09:54:11 +0200 (CEST) From: Andreas Schwab To: Eli Zaretskii Cc: sergiodj@redhat.com, simon.marchi@ericsson.com, gdb-patches@sourceware.org Subject: Re: [PATCH] Make sure GDB uses a valid shell when starting the inferior and to perform the "shell" command References: <1437761993-18758-1-git-send-email-sergiodj@redhat.com> <55B2850D.6030306@ericsson.com> <87k2tp5q3g.fsf@redhat.com> <838ua52wmp.fsf@gnu.org> <87oaj148e7.fsf@igel.home> <834mks3e5r.fsf@gnu.org> X-Yow: I've got an IDEA!! Why don't I STARE at you so HARD, you forget your SOCIAL SECURITY NUMBER!! Date: Sat, 25 Jul 2015 07:54:00 -0000 In-Reply-To: <834mks3e5r.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 25 Jul 2015 10:11:12 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2015-07/txt/msg00742.txt.bz2 Eli Zaretskii writes: >> From: Andreas Schwab >> Cc: Sergio Durigan Junior , simon.marchi@ericsson.com, gdb-patches@sourceware.org >> Date: Fri, 24 Jul 2015 22:18:08 +0200 >> >> Eli Zaretskii writes: >> >> > Since the number of valid shells is much smaller than the number of >> > non-shell programs, isn't it better to have a database of known shells >> > than to have a database of non-shells people could be expected to set >> > SHELL to? >> >> This database will be of infinite size. Why should it be invalid to set >> SHELL=/foo/bar if that's my self-compiled super-duper shell? > > The same goes for non-shells as well. No, the set of non-shells is finite, because they will match a line in /etc/shells. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."