Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 5 Mar 2001 08:41:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 5 Mar 2001 08:40:56 -0500 Received: from chaos.analogic.com ([204.178.40.224]:11394 "EHLO chaos.analogic.com") by vger.kernel.org with ESMTP id ; Mon, 5 Mar 2001 08:40:49 -0500 Date: Mon, 5 Mar 2001 08:40:22 -0500 (EST) From: "Richard B. Johnson" Reply-To: root@chaos.analogic.com To: Jan Nieuwenhuizen cc: Pavel Machek , Erik Hensema , linux-kernel@vger.kernel.org, bug-bash@gnu.org Subject: Re: binfmt_script and ^M In-Reply-To: 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 On 5 Mar 2001, Jan Nieuwenhuizen wrote: > Pavel Machek writes: > > > > $ head -1 testscript > > > #!/bin/sh > > > $ ./testscript > > > bash: ./testscript: No such file or directory > > > > What kernel wants to say is "/usr/bin/perl\r: no such file". Saying ENOEXEC > > would be even more confusing. > > So, why don't we make bash say that, then? As I guess that we've all > been bitten by this before. > > What are the chances for something like this to be included? > > Greetings, > Jan. > [SNIPPED...] So why would you even consider breaking bash as a work-around for a broken script? Somebody must have missed the boat entirely. Unix does not, never has, and never will end a text line with '\r'. It's Microsoft junk that does that, a throwback to CP/M, a throwback to MDS/200. Cheers, Dick Johnson Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips). "Memory is like gasoline. You use it up when you are running. Of course you get it all back when you reboot..."; Actual explanation obtained from the Micro$oft help desk. - 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/