Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16349

Re: Arithmetic expansion in rediretion word is evaluated twice

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Oğuz <oguzismailuysal@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Arithmetic expansion in rediretion word is evaluated twice
Date Tue, 2 Jun 2020 08:18:32 +0300
Lines 64
Approved bug-bash@gnu.org
Message-ID <mailman.967.1591075128.2541.bug-bash@gnu.org> (permalink)
References <CAH7i3LppMnJky1g3Fm5N-qDTzG3Oz54VLtcFrk185pf=OUA7rA@mail.gmail.com> <f9664831-9f7d-2566-39fd-e2d30e2aea0b@case.edu> <CAH7i3Lqu3HgWv11oTYZj6C3z7wu2P7X0WCDr+Wa03k1HkuaAeg@mail.gmail.com> <CAH7i3LqhvGXAgDEe0=4L6E0U8xgXLXBfxWH8RjX66qZbyBaUvQ@mail.gmail.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
X-Trace usenet.stanford.edu 1591075129 18680 209.51.188.17 (2 Jun 2020 05:18:49 GMT)
X-Complaints-To action@cs.stanford.edu
Cc "bug-bash@gnu.org" <bug-bash@gnu.org>
To "chet.ramey@case.edu" <chet.ramey@case.edu>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=3QYNx616UXrLZBujzUoTxRxPrMF7VwwUwAFmkYq5pJk=; b=XoYUUrzZD+qF4iVLe0qaqEHrGUsk2yCo52x8iSD0oEdgfpedCu06SDrA9p+QJ4RrNs Qd6DtJ4EW6GTYwlPR8o1LBf54MOwMFbLPMlXyr/OWqyI+0Kfja13hgL7ECYoHLg7EUXI lVCiFSWj72CpPQ2o5aUIWv/B0KEJa8lWb4fxItJPs1QSQaYlImlZdGr0r81Fhwk3aNWw cPssEj19uVEAzQa9m99QWoiwwQWektgjAQCWy1on6P02RhENUFB4YUkRbJrRmnkHPe+U ZBbBKozF3cSfGjUaNchME5NHjAkO+/fZjusySRf8Lb0E2jLP5U8BsAF9+axdpT77YZvT 7QQA==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=3QYNx616UXrLZBujzUoTxRxPrMF7VwwUwAFmkYq5pJk=; b=g7+K7ViS9+NjO6IC75J+zpAdLY3gZShib1rM88KzZdOI2VYK55h9KcmQW7DhcF8kWD YeobG0HaUJchFhHcdFMkw0+vfEU8tzufAN0Yo51/ojOdtRqJCKoC4sewB6MDC4XRDBZO ZwrElQdICZZkX+cWjiIXbt2QAneGuVbpyUZ2DgQ/cL07Qei4g9DTdg3Md3QoYxHgDMbz jWnFq8XG++pPErBF0PexqZmaolKSlk40/LFqzwkwQTK6CZ8QUgaV6lZRwrDsTgjdqt2i B9/sA2MYv+GX/ImVzBXpJPkR2RyLXpOv52En4xX6utaAHxhW85lOUqDLZMWtCIkdzTKO Jqpw==
X-Gm-Message-State AOAM530c4HT+jd7PANf+JUVOX7OPm1f7wP2aq/fbCk79CJ71YzO6XbNe 42Oy2o/Zvd+/9/+4sfrItiHyYcepJTo8fB0x38w=
X-Google-Smtp-Source ABdhPJwWMBuM9UfrWdqjnoT9SN9dIBD+W9gByqiHSAWZZ462PXSIAY8el64Sj9X7jkk9PNGFz52Z4ayUjxj1u/qZPhk=
X-Received by 2002:a37:9d52:: with SMTP id g79mr23311802qke.331.1591075124777; Mon, 01 Jun 2020 22:18:44 -0700 (PDT)
In-Reply-To <CAH7i3Lqu3HgWv11oTYZj6C3z7wu2P7X0WCDr+Wa03k1HkuaAeg@mail.gmail.com>
Received-SPF pass client-ip=2607:f8b0:4864:20::72e; envelope-from=oguzismailuysal@gmail.com; helo=mail-qk1-x72e.google.com
X-detected-operating-system by eggs.gnu.org: No matching host in p0f cache. That's all we know.
X-Spam_score_int -10
X-Spam_score -1.1
X-Spam_bar -
X-Spam_report (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FROM_EXCESS_BASE64=0.979, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN
X-Spam_action no action
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <CAH7i3LqhvGXAgDEe0=4L6E0U8xgXLXBfxWH8RjX66qZbyBaUvQ@mail.gmail.com>
X-Mailman-Original-References <CAH7i3LppMnJky1g3Fm5N-qDTzG3Oz54VLtcFrk185pf=OUA7rA@mail.gmail.com> <f9664831-9f7d-2566-39fd-e2d30e2aea0b@case.edu> <CAH7i3Lqu3HgWv11oTYZj6C3z7wu2P7X0WCDr+Wa03k1HkuaAeg@mail.gmail.com>
Xref csiph.com gnu.bash.bug:16349

Show key headers only | View raw


Below is the error message from the compilation failure after git pull && make:

variables.o: In function `get_urandom':
/home/oguz/.local/src/bash/variables.c:1406: undefined reference to
`get_urandom32'
variables.o: In function `assign_random':
/home/oguz/.local/src/bash/variables.c:1356: undefined reference to `sbrand'
variables.o: In function `get_random_number':
/home/oguz/.local/src/bash/variables.c:1376: undefined reference to `brand'
/home/oguz/.local/src/bash/variables.c:1371: undefined reference to `seedrand'
/home/oguz/.local/src/bash/variables.c:1376: undefined reference to `brand'
variables.o: In function `initialize_shell_variables':
/home/oguz/.local/src/bash/variables.c:607: undefined reference to `seedrand'
/home/oguz/.local/src/bash/variables.c:608: undefined reference to `seedrand32'
collect2: error: ld returned 1 exit status
Makefile:581: recipe for target 'bash' failed
make: *** [bash] Error 1

On Mon, Jun 1, 2020 at 11:17 PM Oğuz <oguzismailuysal@gmail.com> wrote:
>
>
>
> 1 Haziran 2020 Pazartesi tarihinde Chet Ramey <chet.ramey@case.edu> yazdı:
>>
>> On 6/1/20 3:34 PM, Oğuz wrote:
>> > See:
>> >
>> >     $ unset foo
>> >     $ : <$((foo+=42))
>> >     bash: 84: No such file or directory
>> >     $ echo $foo
>> >     84
>> >
>> > Reproducible on 4.4.20 and 5.0.11, couldn't try on development version
>> > because since the last push it doesn't compile
>>
>> How about an error message from the compile failure?
>>
> It was something about underlying $RANDOM functions in variables.c, tomorrow I can mail the full error messages.
>
>> --
>> ``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/
>
>
>
> --
> Oğuz
>


-- 
Oğuz

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Arithmetic expansion in rediretion word is evaluated twice Oğuz <oguzismailuysal@gmail.com> - 2020-06-02 08:18 +0300

csiph-web