
can exec pass an argument starting by <
Quote:
> >:exec gvim --remote-send <Esc>
> >Quoting appropriately values being shipped to a command being invoked via
> >a shell is typically pretty {*filter*} stuff. Seems to me that it would really
> >be worthwhile if someone would share in tcllib a proc that takes care of
> >as much of this sort of thing as possible... It might even be nice to roll
> >this kind of thing into the core if it were cross platform.
> Some thoughts about this problem with exec have been collected in the Wiki:
> http://www.*-*-*.com/ ;[AlternativeToExec]
> yes, it would be nice.
Here's a solution to the example used in the Wiki
(pasted here)
Example:
% exec /bin/echo "<hallo>"
couldn't read file "hallo>": no such file or directory
%
(end paste)
One solution:
% exec /bin/echo -e \\74hallo\\76
<hallo>
%
This works because of the -e option to echo. I don't know about the
portability of the -e option, or if this is of any use to the
original post, but I thought it might point somebody in the right
direction. If anything, it will help those trying to use "exec echo" with
redirection characters on Linux.