help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loops and scripting in eshell


From: David Kastrup
Subject: Re: Loops and scripting in eshell
Date: 19 Oct 2003 22:45:57 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Oliver Scholz <alkibiades@gmx.de> writes:

> Oliver Scholz <alkibiades@gmx.de> writes:
> 
> > Kai Grossjohann <kai.grossjohann@gmx.net> writes:
> >
> >> Oliver Scholz <alkibiades@gmx.de> writes:
> >>
> [...]
> >>> Loops are the one feature that I am missing in eshell.
> >>
> >> for f in a b { echo $f; }               # invokes shell command echo
> >> for f in a b ( find-file f )            # invokes Lisp command
> 
> [...]
> > Thank you very much. What a relief!
> [...]
> 
> I am not quite there yet. I'd sometimes need something like:
> 
> for f in `ls` { echo $f }
> 
> So what would be the equivalent to bash:
> 
> for f in `ls`; do echo $f; done
> 
> or
> 
> for f in $(ls); do echo $f; done

for f in ${ls -1} { echo $f; }

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


reply via email to

[Prev in Thread] Current Thread [Next in Thread]