On Mon, Apr 23, 2012 at 02:38:47PM +0400, Andrey Zaitsev wrote:
> Strace show that errors from /bin/bash were ignored:
> 
> [user@host ~]# strace echo "bla-bla-bla" > /mnt/fs/out.txt
> execve("/bin/echo", ["echo", "bla-bla-bla"], [/* 22 vars */]) = 0

If you want an strace of the internal echo, you have to do it this
way:

# strace bash -c 'echo "bla-bla-bla" > /mnt/fs/out.txt'

In fact it's the redirection whose failure you really care about.

Reply via email to