X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4954brgZ1644746 Authentication-Results: delorie.com; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=A4aDjX1f X-Recipient: djgpp AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728103072; x=1728707872; darn=delorie.com; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Y9VLSxH7QsnPtW0jE5iiXdOKD/6BHNTeNFUyRRQuWrs=; b=A4aDjX1fhwqSQQs4fEjWNbArej3NAuSTdOE0Ep2O54cqOQCFfBEfrdmbzfj22NHnbF fqhX6mKcHU1ecq/qARsLuu9oOAiaT5bVa7OgQn436gfPg9cEHhkFIN4x9o2DiNskyxBg hvSL0qDTDXWYtKYiwYM9Vtb216NItMF+6tYaHOGngttapjwo8ejBbW1ZY7zm/1m3qQcW /N3Hqj/YUs1NrU1OOzpjbV54Q+hAAnv1psSzcks74kpZbc1usTrkHBPYRSOhSR7Pa+Yg GsO5aEXXhJZSdMqMsl0MKnUICaPRh2aNFvj9hKESd2VTBGp/NhaFo7vU6ZWGoJm1JhZN vvpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728103072; x=1728707872; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Y9VLSxH7QsnPtW0jE5iiXdOKD/6BHNTeNFUyRRQuWrs=; b=JcwVDKzedRXaFlVBVF0FPJhUlrJkK9NjpojhMbvOGvMEUpHMuVnukgzQgxU44Zm8lC opshORlENvi9F+xcmkrp/FCaLmnGV5hm9vqalBLlvQnW9g9/h+HYCFjVjc2BTzdkp6di zt0j7AnDZG6hmakyxhGGZOmASx94ALdkXgK3oNq8NUobm6g8LSVhjj7j1wzfSEbjxv+V u2xwvQm7m0hZoBc3uhIKe2LX1vrt9a/w0age4VjDCHCdZBLWdR8uDGM+Tw0phw8JNQfj PNG2LHM5HY0cR84gwO22CW3d60Wh8y2VZqP8pJI3Nt6BteU6gfdOzyu5ryNE1+HY0NW9 lqMQ== X-Gm-Message-State: AOJu0Yw7MK32zmAZXiAHkHWHHO3MZyeQAMq7wYyqaLXrpLBHGxsRd/KU q78WHRfAubCqjTVvbkKFOukVRbJwzshyl32vJ3n44n5muvrJptp7k6eaOjJIJ84lXzSbIpTd2uT 6C+1BWZ4eRtdMpA6ieDXhShhmZP3zVL/v X-Google-Smtp-Source: AGHT+IGBB7OvAARPYNE0luxI3nrhuCJLohKSikOV37SG8XGUyKGjlCA5IzUpntW5FOEElUXwQw8eHFTAOB9oCEY4u/4= X-Received: by 2002:a05:6808:13d2:b0:3dc:2878:c2d with SMTP id 5614622812f47-3e3c156ca1emr3006399b6e.47.1728103072506; Fri, 04 Oct 2024 21:37:52 -0700 (PDT) MIME-Version: 1.0 From: "Stefan Ring (stefanrin AT gmail DOT com) [via djgpp AT delorie DOT com]" Date: Sat, 5 Oct 2024 06:37:41 +0200 Message-ID: Subject: Weird redirection behavior/bug in bash 4.4.28 To: djgpp AT delorie DOT com Content-Type: text/plain; charset="UTF-8" Reply-To: djgpp AT delorie DOT com I have been able to rebuild DJGPP gcc from the source zip files (gcc*s.zip) on Windows Vista for quite a while now and recently wanted to find out if it also works on Windows XP. The first stumbling block was that for some reason, bash kept crashing almost immediately. It was the old version 2.05b, which works perfectly fine on Vista, but not on XP, so I just swapped it for the most recent binary release, bsh4428, and tried to go ahead. After a while, the build would fail with libtool complaining "`atomic.lo' is not a valid libtool object", which was surprising, as the file looked perfectly normal (inside libbacktrace/): --- %< --- # atomic.lo - a libtool object file # Generated by libtool (GNU libtool 1.3134 2009-11-29) 2.2.7a # # Please DO NOT delete this file! # It is necessary for linking the library. # Name of the PIC object. pic_object=none # Name of the non-PIC object non_pic_object='atomic.o' --- %< --- After downgrading bash to 4.2.53, this started to work mysteriously, which sent me on a longish journey trying to build and patch interim bash versions (which is horrible and proved not to be useful anyway) and ultimately found that inside libtool, something like this short script is used, and somehow the DOS line endings in atomic.lo confuse bash: set -o posix exec