[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: History Expansion in Arithmetic Expansion
From: |
A4-Tacks |
Subject: |
Re: History Expansion in Arithmetic Expansion |
Date: |
Sat, 23 Mar 2024 23:39:31 +0800 (GMT+08:00) |
Thank you, this is very effective!
---- Replied Message ----
| From | alex xmb sw ratchev<fxmbsw7@gmail.com> |
| Date | 03/23/2024 23:38 |
| To | A4-Tacks<wdsjxhno1001@163.com> |
| Cc | bug-bash<bug-bash@gnu.org> |
| Subject | Re: History Expansion in Arithmetic Expansion |
On Sat, Mar 23, 2024, 16:34 A4-Tacks <wdsjxhno1001@163.com> wrote:
Configuration Information [Automatically generated, do not change]:
Machine: aarch64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -march=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt
-fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
-fstack-clash-protection
-DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin'
-DSTANDARD_UTILS_PATH='/usr/bin' -DSYS_BASHRC='/etc/bash.bashrc'
-DSYS_BASH_LOGOUT='/etc/bash.bash_logout' -DNON_INTERACTIVE_LOGIN_SHELLS
uname output: Linux localhost 4.14.116 #1 SMP PREEMPT Tue Mar 22 15:13:10 CST
2022 aarch64 GNU/Linux
Machine Type: aarch64-unknown-linux-gnu
Bash Version: 5.2
Patch Level: 26
Release Status: release
Description:
I am unable to use logical inversion operators in line
arithmetic extensions, nor can I escape them, which is undoubtedly abnormal
Repeat-By:
```bash
$ ((!RANDOM))
bash: !RANDOM: event not found
```
small workaround
(( ! bla ))