Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bang Executing Perl Scripts
- X-seq: zsh-users 15723
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Bang Executing Perl Scripts
- Date: Mon, 24 Jan 2011 20:41:04 +0000 (UTC)
- 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
- Organization: SuccessTheory
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
--
zzapper
http://zzapper.co.uk/ Technical Tips
Messages sorted by:
Reverse Date,
Date,
Thread,
Author