Re: creating shell scripts using #!/usr/local/env perl

From: Juha Laiho (Juha.Laiho_at_iki.fi)
Date: 08/04/04


Date: Wed, 04 Aug 2004 18:57:03 GMT

merlyn@stonehenge.com (Randal L. Schwartz) said:
>Argh! What did they do *that* for? That's crazy!
>
>The only reason "env" exists is because the brain-dead csh can't add
>arbitrary env vars per command.

Hmm.. rather hard to duplicate functionality of 'env - command', I'd
say. Not that I've ever used that form, but still - that would be one
use of env even for Bourne shells.

-- 
Wolf  a.k.a.  Juha Laiho     Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
         PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)


Relevant Pages

  • Re: invoking C-shell command through Perl script
    ... If you insist on using the OS command, ... As for ENV Vars- again portabiity might be a concern. ... var to persist after the script exits? ... and have the other script open and read it? ...
    (comp.lang.perl.misc)
  • Re: shell script problem in HPUX
    ... I have get rid of the problem with the ENV. ... and the associated command line in the perl script is: ... > Look at what you have ENV set to in your environment with the 'env' command. ... > if you dont want to preserve existing paths in the PATH var. ...
    (comp.sys.hp.hpux)
  • Re: invoking C-shell command through Perl script
    ... If you insist on using the OS command, ... > As for ENV Vars- again portabiity might be a concern. ... I can print now messages from Perl, ... they are special commnads that invoke specific tools for UNIX like ...
    (comp.lang.perl.misc)
  • Re: basic linux question..
    ... just run this command ... notice the dot after the dolar prompt! ... if you want to read the ENV from profile, ...
    (RedHat)
  • Re: How to extend javax.mail for custom POP3 commands?
    ... it may be the case that the first 2 characters returned by the *ENV ... command are NOT OK or RD as demon have said. ... The first line of POP3 ... I'm not a demon customer so I haven't been able to test ...
    (comp.lang.java.programmer)