Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 11 Jul 2002 16:04:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 11 Jul 2002 16:04:14 -0400 Received: from mail7.svr.pol.co.uk ([195.92.193.21]:46152 "EHLO mail7.svr.pol.co.uk") by vger.kernel.org with ESMTP id ; Thu, 11 Jul 2002 16:04:13 -0400 Posted-Date: Thu, 11 Jul 2002 20:06:51 GMT Date: Thu, 11 Jul 2002 21:06:50 +0100 (BST) From: Riley Williams Reply-To: Riley Williams To: Tom Rini cc: Justin Hibbits , Linux Kernel , Michael Elizabeth Chastain Subject: Re: Patch for Menuconfig script In-Reply-To: <20020708181838.GL695@opus.bloom.county> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1666 Lines: 49 Hi Tom. >>>>> This is just a patch to the Menuconfig script (can be easily adapted >>>>> to the other ones) that allows you to configure the kernel without >>>>> the requirement of bash (I tested it with ksh, in POSIX-only mode). >>>>> Feel free to flame me :P >>>> >>>> Does it also work in the case where the current shell is csh or tcsh >>>> (for example)? >>> >>> Er.. why wouldn't it? >>> $ head -1 scripts/Menuconfig >>> #! /bin/sh >>> >>> So this removes the /bin/sh is not bash test, yes? >> >> Q> # ls -l /bin/sh | tr -s '\t' ' ' >> Q> lrwxrwxrwx 1 root root 4 May 7 1999 /bin/sh -> tcsh >> Q> # >> >> You tell me - the above is from one of the systems I regularly use, >> which does not even have bash installed... > > So does tcsh work as a POSIX-sh when invoked as /bin/sh ? You tell me - what exactly defines "a POSIX-sh" ??? All I know is, the system in question does the job it's intended to, and that's about all the operators care about. Probably of more interest is this: Prior to your tweaks, the Menuconfig script just reported that one was trying to run it under the wrong shell. What happens when one tries to run your modified version under those conditions? There are only two valid answers: 1. It runs successfully. 2. It reports that it can't run under that shell. You're the one proposing the patch, so you're the one who needs to answer that question. Best wishes from Riley. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/