Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 15 Sep 2002 15:00:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 15 Sep 2002 15:00:31 -0400 Received: from lmail.actcom.co.il ([192.114.47.13]:29895 "EHLO lmail.actcom.co.il") by vger.kernel.org with ESMTP id ; Sun, 15 Sep 2002 15:00:30 -0400 Subject: Re: [BUG?] binfmt_script: interpreted interpreter doesn't work From: Gilad Ben-Yossef To: Pozsar Balazs Cc: linux-kernel In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 15 Sep 2002 22:05:31 +0300 Message-Id: <1032116731.2620.1.camel@gby.benyossef.com> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1171 Lines: 46 On Sun, 2002-09-15 at 20:15, Pozsar Balazs wrote: > This may well not be bug, rather an intended feature, but please enlighten > me why the following doesn't work: > > I have two scripts: > /home/pozsy/a: > #!/bin/sh > echo "Hello from a!" > > /home/pozsy/b: > #!/home/pozsy/a > echo "hello from b!" > > > Both of them has +x permissions. > But I cannot execute the /home/pozsy/b script: > > [pozsy:~]$ strace -f /home/pozsy/b > execve("/home/pozsy/b", ["/home/pozsy/b"], [/* 25 vars */]) = 0 > strace: exec: Exec format error > [pozsy:~]$ > > > Isn't this "indirection" allowed? hm... never chcked the code but I think /home/pozsy/a needs to be in /etc/shells What are you trying to do, anyway? Cheers, Gilad. -- Gilad Ben-Yossef http://benyossef.com "We don't need kernel hackers or geniuses, we need good developers who will do what they're told". Famous last words, the collection. - 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/