From: arisawa@ar.aichi-u.ac.jp
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] #!/bin/foo
Date: Sat, 16 Jul 2005 07:08:21 +0900 [thread overview]
Message-ID: <3c689e333f7c49b26a5ea9493ab67d2c@ar.aichi-u.ac.jp> (raw)
In-Reply-To: <20050715183006.GA21802@augusta.math.psu.edu>
> It is, but it's to prevent an endless loop.... Imagine if you had a
> script named /usr/someone/blah that started, ``#!/usr/someone/blah''.
> It would try to recursively start itself as a script, and the kernel
> would (potentially) go into an endless loop.
Thanks for your interest.
Yes I know that, but I have experienced such an endless loop
using only binary executables. the kernel crushed.
of course the logic was not so simple.
> Under Unix, you could probably get around it by doing something like,
> #!/usr/bin/env script-to-use-as-interpreter. Some similar wrapper
> could probably be written for Plan 9 to achieve the same effect.
>
that is easy but dirty.
Kenji Arisawa
next prev parent reply other threads:[~2005-07-15 22:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-14 21:09 arisawa
2005-07-15 18:30 ` Dan Cross
2005-07-15 22:08 ` arisawa [this message]
2005-07-15 22:40 ` arisawa
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=3c689e333f7c49b26a5ea9493ab67d2c@ar.aichi-u.ac.jp \
--to=arisawa@ar.aichi-u.ac.jp \
--cc=9fans@cse.psu.edu \
/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;
as well as URLs for NNTP newsgroup(s).