Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 15 Sep 2002 13:10:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 15 Sep 2002 13:10:44 -0400 Received: from balu.sch.bme.hu ([152.66.208.40]:18066 "EHLO balu.sch.bme.hu") by vger.kernel.org with ESMTP id ; Sun, 15 Sep 2002 13:10:43 -0400 Date: Sun, 15 Sep 2002 19:15:38 +0200 (MEST) From: Pozsar Balazs To: linux-kernel Subject: [BUG?] binfmt_script: interpreted interpreter doesn't work 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: 757 Lines: 35 Hi all, 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? -- pozsy - 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/