bug-bash
[Top][All Lists]
Advanced

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

Re: [5.3-alpha] ">& /some/file" would fail when /some/file already exist


From: Chet Ramey
Subject: Re: [5.3-alpha] ">& /some/file" would fail when /some/file already exists
Date: Thu, 25 Apr 2024 14:53:52 -0400
User-agent: Mozilla Thunderbird

On 4/25/24 12:18 PM, Clark Wang wrote:
(I'm using the "devel" branch as the "bash-5.3-testing" branch failed
to build for me. HEAD: 8c8daff1e3661c)

To reproduce:

$ bash53 --norc
bash53-5.3# touch /tmp/file
bash53-5.3# echo >& /tmp/file
bash53: /tmp/file: File exists
bash53-5.3#

I can't reproduce it on macOS.

$ ./bash --norc
$ touch some.file
$ echo >&some.file
$ rm some.file
$ touch /tmp/file
$ echo >& /tmp/file
$ rm /tmp/file
$ echo $BASH_VERSION
5.3.0(1)-alpha


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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