emacs-devel
[Top][All Lists]
Advanced

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

Re: Redirecting standard output


From: Eli Zaretskii
Subject: Re: Redirecting standard output
Date: Thu, 21 Apr 2011 14:58:48 +0300

> From: Lars Magne Ingebrigtsen <address@hidden>
> Date: Thu, 21 Apr 2011 13:40:45 +0200
> 
> The pbmplus commands read from stdin and write to stdout, mostly.  So if
> you want to rescale a picture, you have to say "pnmscale < foo > bar".
> [...]
> > So, if you use shell-quote-argument, is there still a problem?
> 
> I think putting stuff into a string and then reparsing the string is bad
> programming practise.  If it can be (easily) avoided, it should be.

Sorry, I don't follow: what string? what reparsing?

I meant to use something like this:

  (call-process shell-file-name nil nil nil
                shell-command-switch 
                (concat "pnmscale < " 
                        (shell-quote-argument "foo") " > "
                        (shell-quote-argument "bar")))

Does this do what you want?



reply via email to

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