emacs-devel
[Top][All Lists]
Advanced

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

Re: info inconsistency about "Shell Commands in Dired"


From: David Kastrup
Subject: Re: info inconsistency about "Shell Commands in Dired"
Date: 22 Aug 2004 14:59:04 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Masatake YAMATO <address@hidden> writes:

> > > How do you think using `format' function directly instead of `?' ?
> > > 
> > > e.g.
> > > 
> > >   uuencode %s %s > %s.uu
> > > 
> > > Advantage:
> > > - If the user want to `%' itself in the command line, format function
> > >   can handle it:
> > > 
> > >       echo %%s
> > > 
> > > - Implementation is not so difficult(for us).
> > 
> > Not?  How do you call the format function?  Depends on the number of
> > %s...
> 
> Good point.
> I found next code works.
> 
>     (apply 'format "echo %s" '("a" "a" "a"))
>     => "echo a"
> 
> So we can pass arguments as much as possible:-P.

As much as possible?
(apply 'format "echo %s %s %s %s" '#1=("a" . #1#))

Just turns out that apply is not too happy about passing infinitely
long argument lists on.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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