mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gilad Ben-Yossef <gilad@benyossef.com>
To: Pozsar Balazs <pozsy@uhulinux.hu>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [BUG?] binfmt_script: interpreted interpreter doesn't work
Date: 15 Sep 2002 22:05:31 +0300	[thread overview]
Message-ID: <1032116731.2620.1.camel@gby.benyossef.com> (raw)
In-Reply-To: <Pine.GSO.4.30.0209151910220.22107-100000@balu>

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 <gilad@benyossef.com>
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.


  reply	other threads:[~2002-09-15 19:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-15 17:15 Pozsar Balazs
2002-09-15 19:05 ` Gilad Ben-Yossef [this message]
2002-09-15 19:14   ` Pozsar Balazs
2002-09-15 20:06 ` Ingo Oeser
2002-09-15 21:04   ` Pozsar Balazs
2002-09-15 21:18   ` Mark Veltzer
2002-09-15 21:19   ` jbradford
     [not found] <200209152055.05322.hpj@urpla.net>
2002-09-15 19:13 ` Pozsar Balazs
2002-09-15 19:34   ` Willy Tarreau
2002-09-15 21:00     ` Pozsar Balazs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1032116731.2620.1.camel@gby.benyossef.com \
    --to=gilad@benyossef.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pozsy@uhulinux.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®