[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bash aborts line-editing on tab-expansion with find pattern
From: |
mow |
Subject: |
bash aborts line-editing on tab-expansion with find pattern |
Date: |
Mon, 15 Jan 2024 14:47:43 +0100 (CET) |
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -Wall
uname output: Linux sourcetronic.com 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2
(2022-10-21) x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu
Bash Version: 5.1
Patch Level: 4
Release Status: release
Description:
Found while editing history line with a find pattern.
Apparently bash doesn't like + characters very much.
Repeat-By:
find . -type f -ctime +30 ! -ctime +40 -exec ls -la --full-time {} +
Move cursor to any point after find and before -exec, press TAB, and
bash will print
-bash: COMP_POINT: substring expression < 0
(before the +3)
or
-bash: index: substring expression < 0
(after the +3)
at the cursor position and abort editing the line.
MfG MOW []-)
- bash aborts line-editing on tab-expansion with find pattern,
mow <=