Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bang Executing Perl Scripts
- X-seq: zsh-users 15724
- From: Guillaume Brunerie <guillaume.brunerie@xxxxxxxxx>
- To: zzapper <david@xxxxxxxxxx>
- Subject: Re: Bang Executing Perl Scripts
- Date: Mon, 24 Jan 2011 22:11:36 +0100
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=omidEjz6tc/EB8S16JAJdoMVdBEAPG7UjTlTqmyrhBs=; b=mIxNbcsE+S6TISMlpDWsp6sSUNFXtRGVmeLgsKvP7WRAPqzmObFNFRbNDhpUWph3Yn ZHk/TPRvHv3tXR5kC1K9QuDYNQIdegIzt/HwC3rDp71wOPOl0nSkuRubNXw+/Qd9fNJG 33gbEnYi32dff71w3P1mKunEDNBFYdHcwkQOU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=hxq5PL9keBNtGIKp5s0V5tOmRD8xNUH2e/XQAA/T2Xo3R66O5kpOHIRzalQWHW1kWl fAmfxFWCxFNPnvAG7cBJ9yaQ7pmnFiTbD4TgMLLRvlyWj6Bvs+Iqw5fmGWRJwCj2Yokl mC0xfGz2tn7uBMzSlp9o0dto+FwG2yyd3sAhM=
- In-reply-to: <Xns9E77D2686F135zzappergmailcom@80.91.229.10>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <Xns9E77D2686F135zzappergmailcom@80.91.229.10>
2011/1/24 zzapper <david@xxxxxxxxxx>
> Hi
> Until now I've been writing zsh wrappers for my perl scripts:-
>
> I've got
> alias -s pl=perl
> So I can execute a script just by typing its name
>
> > /usr/local/bin/info.pl
>
> But I want to execute it from anywhere , but it doesn't seem to notice perl
> scripts even if they are in my $path or $fpath
>
> I can however do:-
>
> >=info.pl
>
> Is there a better way
>
> And finally I'd really like to execute it just with
>
> >info
Hi,
Why not putting #!/usr/bin/perl as the first line of your perl scripts?
Guillaume
Messages sorted by:
Reverse Date,
Date,
Thread,
Author