qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [scripts] default shell/perl locations
@ 2017-01-05 22:41 Sean Bruno
  2017-01-06  8:14 ` Paolo Bonzini
  0 siblings, 1 reply; 4+ messages in thread
From: Sean Bruno @ 2017-01-05 22:41 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 210 bytes --]

I don't suppose it would be possible to have configure check/change the
interpreter path for scripts so that operating systems that don't have
/usr/bin/perl for example, would work out of the box?

sean


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [scripts] default shell/perl locations
  2017-01-05 22:41 [Qemu-devel] [scripts] default shell/perl locations Sean Bruno
@ 2017-01-06  8:14 ` Paolo Bonzini
  2017-01-06 16:01   ` Sean Bruno
  0 siblings, 1 reply; 4+ messages in thread
From: Paolo Bonzini @ 2017-01-06  8:14 UTC (permalink / raw)
  To: Sean Bruno, qemu-devel



On 05/01/2017 23:41, Sean Bruno wrote:
> I don't suppose it would be possible to have configure check/change the
> interpreter path for scripts so that operating systems that don't have
> /usr/bin/perl for example, would work out of the box?

We can use

#!/bin/sh
eval 'exec perl -x -wS $0 ${1+"$@"}'
    if 0;

if that works for you.

Paolo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [scripts] default shell/perl locations
  2017-01-06  8:14 ` Paolo Bonzini
@ 2017-01-06 16:01   ` Sean Bruno
  2017-01-09  8:45     ` Paolo Bonzini
  0 siblings, 1 reply; 4+ messages in thread
From: Sean Bruno @ 2017-01-06 16:01 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini

[-- Attachment #1: Type: text/plain, Size: 586 bytes --]



On 01/06/17 01:14, Paolo Bonzini wrote:
> 
> 
> On 05/01/2017 23:41, Sean Bruno wrote:
>> I don't suppose it would be possible to have configure check/change the
>> interpreter path for scripts so that operating systems that don't have
>> /usr/bin/perl for example, would work out of the box?
> 
> We can use
> 
> #!/bin/sh
> eval 'exec perl -x -wS $0 ${1+"$@"}'
>     if 0;
> 
> if that works for you.
> 
> Paolo
> 
> 

that would be far superior, thank you.

This at least lets folks with /usr/local/bin/perl in their path, find
and run scripts.

sean


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [scripts] default shell/perl locations
  2017-01-06 16:01   ` Sean Bruno
@ 2017-01-09  8:45     ` Paolo Bonzini
  0 siblings, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2017-01-09  8:45 UTC (permalink / raw)
  To: Sean Bruno, qemu-devel



On 06/01/2017 17:01, Sean Bruno wrote:
> 
> 
> On 01/06/17 01:14, Paolo Bonzini wrote:
>>
>>
>> On 05/01/2017 23:41, Sean Bruno wrote:
>>> I don't suppose it would be possible to have configure check/change the
>>> interpreter path for scripts so that operating systems that don't have
>>> /usr/bin/perl for example, would work out of the box?
>>
>> We can use
>>
>> #!/bin/sh
>> eval 'exec perl -x -wS $0 ${1+"$@"}'
>>     if 0;
>>
>> if that works for you.
> 
> that would be far superior, thank you.
> 
> This at least lets folks with /usr/local/bin/perl in their path, find
> and run scripts.

Great, then patches are welcome. :)

Paolo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-09  8:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-05 22:41 [Qemu-devel] [scripts] default shell/perl locations Sean Bruno
2017-01-06  8:14 ` Paolo Bonzini
2017-01-06 16:01   ` Sean Bruno
2017-01-09  8:45     ` Paolo Bonzini

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).