tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Denying #!/usr/bin/env as a valid interpreter

Roy Marples <> writes:

> On 20/04/2011 01:43, George Michaelson wrote:
>> If the problem is which python to invoke, then I
>> think it bears musing how other Unix-like platforms deal with this.
> Other platforms only allow one version of python.
> The only other that allows >1 i know of is Gentoo. But you are only
> allowed one global version and they don't allow a specific version on
> a package basis.

Debian allows multiple versions.  There seems to be a metapackage that
depends on the "default version" (currently 2.6) and provides a
/usr/bin/python symlink to it, but other versions can be installed as
well.  If the administrator wants to change the "default", I think
they'd need to build a locally modified version of the metapackage.

I assume that they have reasons for doing it that way instead of with

(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l))))))  (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k)))))))    '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))

Home | Main Index | Thread Index | Old Index