Saturday, July 30, 2011

Re: Assign the result of a COMMAND to a variable

Reply to message «Assign the result of a COMMAND to a variable»,
sent 14:34:06 30 July 2011, Saturday
by Axel Bender:

Use :redir, but if you can avoid it, do avoid. It has some problems due to the
fact that redirections do not nest.

Original message:
> I wonder if it is possible to assign the result of a command to a variable
> like so (not working):
>
> let [var] = [command]
>
> (where [command] stands for an arbitrary command producing output, like
> e.g. ls].

No comments: