zsh-users
 help / color / mirror / code / Atom feed
* Function call problems
@ 2006-11-12 15:42 Meino Christian Cramer
  2006-11-12 16:00 ` Frank Terbeck
  2006-11-12 16:02 ` Jean-Rene David
  0 siblings, 2 replies; 3+ messages in thread
From: Meino Christian Cramer @ 2006-11-12 15:42 UTC (permalink / raw)
  To: zsh-users

Hi,

 I defined a function like that:

     function listall() {
	    ls ${THISDIR}/*
     }

 and want to call it like

     listing=listall

 but after

     echo listing

 I got 

    listall

 back and not the listing as such. THISDIR is set correctly.

 Thank you very much for any help in advance !

 keep hacking!
 mcc


 


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

* Re: Function call problems
  2006-11-12 15:42 Function call problems Meino Christian Cramer
@ 2006-11-12 16:00 ` Frank Terbeck
  2006-11-12 16:02 ` Jean-Rene David
  1 sibling, 0 replies; 3+ messages in thread
From: Frank Terbeck @ 2006-11-12 16:00 UTC (permalink / raw)
  To: zsh-users

Meino Christian Cramer <Meino.Cramer@gmx.de>:
> Hi,
> 
>  I defined a function like that:
> 
>      function listall() {
> 	    ls ${THISDIR}/*
>      }
> 
>  and want to call it like
> 
>      listing=listall
> 
>  but after
> 
>      echo listing
> 
>  I got 
> 
>     listall

% listing=$( listall )

Regards, Frank


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

* Re: Function call problems
  2006-11-12 15:42 Function call problems Meino Christian Cramer
  2006-11-12 16:00 ` Frank Terbeck
@ 2006-11-12 16:02 ` Jean-Rene David
  1 sibling, 0 replies; 3+ messages in thread
From: Jean-Rene David @ 2006-11-12 16:02 UTC (permalink / raw)
  To: zsh-users

* Meino Christian Cramer [2006.11.12 10:45]:
>      listing=listall

listing=$(listall)

-- 
JR


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

end of thread, other threads:[~2006-11-12 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-12 15:42 Function call problems Meino Christian Cramer
2006-11-12 16:00 ` Frank Terbeck
2006-11-12 16:02 ` Jean-Rene David

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