Bug ID 1217271
Summary [[ ]] causes bash to hiccup
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware x86-64
OS openSUSE Tumbleweed
Status NEW
Severity Normal
Priority P5 - None
Component Basesystem
Assignee screening-team-bugs@suse.de
Reporter novell@whitleymott.net
QA Contact qa-bugs@suse.de
Target Milestone ---
Found By ---
Blocker ---

$ exec -cl /bin/bash --norc --noprofile
$ [[ x ]]
$ [[ ]]
$ [[ x ]]
bash: syntax error near unexpected token `x'

Looks like a bug to me.
Apparently [[ ]] evokes the bug, and the next use of [[ reports a syntax error

# inxi -bz
System:
  Kernel: 6.5.9-1-default arch: x86_64 bits: 64 Console: pty pts/9
    Distro: openSUSE Tumbleweed 20231108
Machine:
  Type: Laptop System: HP product: HP EliteBook 840 G3 v: N/A serial: <filter>
  Mobo: HP model: 8079 v: KBC Version 85.78 serial: <filter> UEFI: HP
    v: N75 Ver. 01.39 date: 04/16/2019
Battery:
  ID-1: BAT0 charge: 39.9 Wh (97.1%) condition: 41.1/41.1 Wh (100.0%)
CPU:
  Info: dual core Intel Core i5-6200U [MT MCP] speed (MHz): avg: 800
    min/max: 400/2800
Graphics:
  Device-1: Intel Skylake GT2 [HD Graphics 520] driver: i915 v: kernel
  Device-2: Cheng Uei Precision Industry (Foxlink) HP HD Camera
    driver: uvcvideo type: USB
  Display: server: X.Org v: 21.1.9 with: Xwayland v: 23.2.2 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915 resolution:
    1: 1366x768~60Hz 2: 1920x1080~60Hz 3: 1366x768~60Hz
  API: OpenGL v: 4.6 Mesa 23.2.1 renderer: Mesa Intel HD Graphics 520 (SKL
    GT2)
Network:
  Device-1: Intel Ethernet I219-V driver: e1000e
  Device-2: Intel Wireless 8260 driver: iwlwifi
  Device-3: Intel Bluetooth wireless interface driver: btusb type: USB
Drives:
  Local Storage: total: 232.89 GiB used: 226.23 GiB (97.1%)
Info:
  Processes: 338 Uptime: 2d 14h 32m Memory: available: 15.5 GiB
  used: 6.57 GiB (42.4%) Shell: Bash inxi: 3.3.27


You are receiving this mail because: