zsh-users
 help / color / mirror / code / Atom feed
* Echoing Parameters $1
@ 2005-02-18 17:12 zzapper
  2005-02-18 18:30 ` Vincent Lefevre
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: zzapper @ 2005-02-18 17:12 UTC (permalink / raw)
  To: zsh-users

Hi,
I feel I'm gonna be flamed here

Here's a real simple function

#!zsh
# name : zv
echo $1

When I call it I get

>zv goat
VIM=/c/vim/vim63/

When I call it with a dot its OK

>. zv goat
goat

Am I missing something really simple ?;?

$ echo $ZSH_VERSION
4.2.4
on cygwin

$ setopt
extendedglob
interactive
localoptions
login
monitor
nonomatch
nopromptcr
shinstdin
zle


zzapper (vim, cygwin, wiki & zsh)
--

vim -c ":%s%s*%CyrnfrTfcbafbeROenzSZbbyranne%|:%s)[R-T]) )Ig|:norm G1VGg?"

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips


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

* Re: Echoing Parameters $1
  2005-02-18 17:12 Echoing Parameters $1 zzapper
@ 2005-02-18 18:30 ` Vincent Lefevre
  2005-02-18 19:54 ` DervishD
  2005-02-22  9:54 ` zzapper
  2 siblings, 0 replies; 4+ messages in thread
From: Vincent Lefevre @ 2005-02-18 18:30 UTC (permalink / raw)
  To: zsh-users

On 2005-02-18 17:12:44 +0000, zzapper wrote:
> I feel I'm gonna be flamed here
> 
> Here's a real simple function
> 
> #!zsh

You need a full absolute path. I recommend:

#!/usr/bin/env zsh

> # name : zv
> echo $1
> 
> When I call it I get
> 
> >zv goat
> VIM=/c/vim/vim63/

Output of "which zv"?

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


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

* Re: Echoing Parameters $1
  2005-02-18 17:12 Echoing Parameters $1 zzapper
  2005-02-18 18:30 ` Vincent Lefevre
@ 2005-02-18 19:54 ` DervishD
  2005-02-22  9:54 ` zzapper
  2 siblings, 0 replies; 4+ messages in thread
From: DervishD @ 2005-02-18 19:54 UTC (permalink / raw)
  To: zzapper; +Cc: zsh-users

    Hi zzapper :)

 * zzapper <david@tvis.co.uk> dixit:
> Here's a real simple function
> 
> #!zsh
> # name : zv
> echo $1
> 
> When I call it I get
> 
> >zv goat
> VIM=/c/vim/vim63/
> 
> When I call it with a dot its OK
> 
> >. zv goat
> goat

    Cannot reproduce here :??? In fact, here it doesn't work with the
bangpath you use :? 4.2.4, too.
 
> $ echo $ZSH_VERSION
> 4.2.4
> on cygwin

    Not on cygwin here, but Linux.

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736
http://www.dervishd.net & http://www.pleyades.net/
It's my PC and I'll cry if I want to...


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

* Re: Echoing Parameters $1
  2005-02-18 17:12 Echoing Parameters $1 zzapper
  2005-02-18 18:30 ` Vincent Lefevre
  2005-02-18 19:54 ` DervishD
@ 2005-02-22  9:54 ` zzapper
  2 siblings, 0 replies; 4+ messages in thread
From: zzapper @ 2005-02-22  9:54 UTC (permalink / raw)
  To: zsh-users

On Fri, 18 Feb 2005 17:12:44 +0000,  wrote:

>Hi,

>
>#!/bin/zsh
># name : zv
>echo $1
>
>When I call it I get
>
>>zv goat
>VIM=/c/vim/vim63/
>
>When I call it with a dot its OK
>
>>. zv goat
>goat
>
Thanx to P.A.Castro

I required

fpath=(/usr/local/bin $fpath)
autoload zv


zzapper (vim, cygwin, wiki & zsh)
--

vim -c ":%s%s*%CyrnfrTfcbafbeROenzSZbbyranne%|:%s)[R-T]) )Ig|:norm G1VGg?"

http://www.vim.org/tips/tip.php?tip_id=305  Best of Vim Tips


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

end of thread, other threads:[~2005-02-22  9:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-18 17:12 Echoing Parameters $1 zzapper
2005-02-18 18:30 ` Vincent Lefevre
2005-02-18 19:54 ` DervishD
2005-02-22  9:54 ` zzapper

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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