bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Internal 'echo' command doesn't handle I/O errors on close file


From: Andreas Schwab
Subject: Re: Internal 'echo' command doesn't handle I/O errors on close file
Date: Mon, 23 Apr 2012 18:50:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux)

Greg Wooledge <address@hidden> writes:

> On Mon, Apr 23, 2012 at 02:38:47PM +0400, Andrey Zaitsev wrote:
>> Strace show that errors from /bin/bash were ignored:
>> 
>> address@hidden ~]# 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.

The redirection itself won't fail, unless the device is out of inodes.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]