2023年12月16日(土) 6:22 Giacomo Comes :
The original post asks the reason for the difference in the status
between the following two cases:
if ((0)); then :; else echo "here \$? is 1"; fi
if ((0)); then :; fi; echo "but here \$? is 0"
and the answer is that the former returns the status of ((0)) (wh
On Sat, 16 Dec 2023 00:09:10 +
Kerin Millar wrote:
> At this point, the value of $? is 1, prior to executing true - a simple
> command. Just as for any other simple command, the trap code shall be
> executed beforehand. Consequently, your test observes that $? is
> arithmetically false and
On Fri, 15 Dec 2023 17:21:23 -0400
Giacomo Comes wrote:
> Hi,
> I have stumbled upon a bug or something I don't understand while
> using the debug trap.
> Please run the script at the end.
> When debug is turned on, during its execution the program
> prints the line number and the line content wh
From: maksym
To: bug-bash@gnu.org
Subject: Job control: process running from pipe doesn't get focus
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt
-fexceptions
Hi,
I have stumbled upon a bug or something I don't understand while
using the debug trap.
Please run the script at the end.
When debug is turned on, during its execution the program
prints the line number and the line content which returned a non
zero value (error).
If you look at the script, the
On 12/11/23 10:01 AM, Albert Akchurin wrote:
Bash Version: 5.2
Patch Level: 21
Release Status: release
Description:
`declare -p` loses the global flag passed to variable/array on
definition.
I think this behaviour is reasonable, but sometimes I need to
save/restore