PREV INDEX NEXT

Author: Anonymous
Subject: exec command parameter special characters
Date: Wednesday, 02 Sep 2020, 17:19:15

I am specifically looking at this example and was hoping you could clarify one thing.

./fiend . -exec echo foo '>' bar \;

When I do system("echo foo '>' bar"), I am returned on the command line "foo > bar" as opposed to piping foo into a file called bar. Is this behavior correct for the function we are creating? Or do I have to parse through the exec parameters and recognize that '>' is actually the pipe symbol? Do you have any suggestions on the easiest way of doing this?
PREV INDEX NEXT