How to use strace upon redirection?

Tian, Kevin kevin.tian at
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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Strace-devel mailing list