How to use strace upon redirection?

Tian, Kevin kevin.tian at intel.com
Wed Aug 6 23:47:13 UTC 2003


I'd like to use strace to see what shell will do for redirection.
However it seems hard to achieve it.

For example: "#strace cat /etc/passwd >aaa"

Shell will make the redirection before execve "strace cat /etc/passwd"
and ">aaa" is considered as parameter to shell, not to cat.

So who could help me to trace redirection process of shell? How could I
make shell consider ">aaa" as simple parameters to execve?

Thanks,
Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20030806/e7cad234/attachment.html>


More information about the Strace-devel mailing list