[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Arithmetic expansion in rediretion word is evaluated twice
From: |
Oğuz |
Subject: |
Arithmetic expansion in rediretion word is evaluated twice |
Date: |
Mon, 1 Jun 2020 23:17:02 +0300 |
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