delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2024/10/20/04:37:23

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 49K8bBCV1768748
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=mwyseG6B
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=1729413429; x=1730018229; darn=delorie.com;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=9AjFws3O0Ga3/RMPzQRb1axmENEqovJQ9ij414O4U40=;
b=mwyseG6BSSK7fIcIFb+N54jSPoCFiRgqZRWilyjDSaRsNQTYjwHeQFbHJy9ba73lbM
ydfH11Wy5i38Dd6dAqNJ4afsN2fAFKGxpfFZmgZlR7HEUhBmzPTSp21KtYocWZcdsvKQ
7zZIAvagv/za3DMSSW1+UcUBI+QvBDfRvpVKI1HYjzFIcuMLk9E7C1gPnidZfPJarFpq
cR3qvzucJPfKeXITG8BnfCgxHnthVTwuh2XxehePR8nww77GuZD95wAsCs0wNxUNuCBS
rG7FbhbLG1C67cFqJ2gtIZmiQaw+S7T70nDHMqkC1BxS9w/pPuy6k9NyvKLHFh85WlKM
RKWA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1729413429; x=1730018229;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=9AjFws3O0Ga3/RMPzQRb1axmENEqovJQ9ij414O4U40=;
b=dZ6I4NolQvreO8SGEdeTl9Or35leNt0cZCs993pdCCUVwrDverVUP/FylkX7KrAJ2p
ijwttpp7G3OsgO8JH+iY9A5ZbCgK3kqMQQpmGlspGBsA5+m+HmIIN/G9tu4PyNJtJ2EZ
5mcyeLHxSxDtCqGBfqY712ptEevR0Um2fntFtmTIncdKI16cYOFGjW3NRvPWsqABLX6a
a+l+5ayZqbZlNLpg1utBOU2vrb33un3dpurhp/zD7veMLD43K1MCOE+EkAlXZrrPgW8Y
ZsWf9/Md+MC2HoSSLHG0xSbQLhwN/PVNVYCtL8hod1XWavcq7umPufe93rbqgNltX5SR
7+nA==
X-Gm-Message-State: AOJu0YxB2Ko6hSuUQNuVHKixBN9KLjakroNtRsHUCcD9SIPHoOmCdYWA
tqpfJq4Qd1YEW/ccpoI+ylVnZqkkY2zPMFoiUk7fkhLFVMkK9Ep61CEq8NEfHV9/efHbZZXX5rR
onQXfjq8OEket++hLenAjiyAl6d0kwO8T
X-Google-Smtp-Source: AGHT+IFLzEl5EtIpXnhz2WFHtv9vExRGBSRrsqxy0oDfrvoZou3CMEdRqNu1oMicmx2SIRpz8O15amomi/wRuw2hqXk=
X-Received: by 2002:a05:6870:2046:b0:260:f6c4:df1 with SMTP id
586e51a60fabf-2892c2d097fmr5823274fac.17.1729413428000; Sun, 20 Oct 2024
01:37:08 -0700 (PDT)
MIME-Version: 1.0
References: <CAAxjCExA-MVJNGXNBXPGmxuON_YGZtMUJb7xjaG0c+JB-yxLhQ AT mail DOT gmail DOT com>
<947eafcc-d3ac-4588-8a02-9f44a759309b AT gmail DOT com>
In-Reply-To: <947eafcc-d3ac-4588-8a02-9f44a759309b@gmail.com>
From: "Stefan Ring (stefanrin AT gmail DOT com) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Date: Sun, 20 Oct 2024 10:36:56 +0200
Message-ID: <CAAxjCEwyu5oQXybdto09vDuD42T7c-Mq3OkUVronm9fGQFYWLQ@mail.gmail.com>
Subject: Re: Weird redirection behavior/bug in bash 4.4.28
To: djgpp AT delorie DOT com
Reply-To: djgpp AT delorie DOT com

Thanks for checking!

The patch that you found was first added in response to the mailing
list threads linked below, for the exact same reason that I tripped
over. Since then, another variant of the functions that were enclosed
in \r-eating loops was added and was not subsequently patched for
djgpp in the same way. For the sake of consistency, the nullptr checks
in all instances of the while loop should be made the same, though.

https://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp-workers/2008/05/10
https://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp/2008/05/14

Apparently, the bash git repo is a huge mess. The DJGPP source zip(s)
need some getting used to, but at least a native build works somewhat
smoothly (the latest one required removing two instances of
SIGCHLD-blocking code lines). However, the djgpp zips seem to indicate
version 4.4.28 in the filename, but both the binary and the source
identify themselves as 4.4.23.

> I had a look at this.  (BTW, the provided sources didn't cross-compile
> out of the box, had to edit some files).

I have also been able to cross-compile it, which is quite tedious, as
you said, but the resulting binary does not work. It seems fine at
first, but once it is let loose on the first configure script, it will
break in weird ways ("cannot create temp file for here-document:
Permission denied (EACCES)".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019