Path: csiph.com!goblin3!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Josh Triplett Newsgroups: gnu.bash.bug Subject: FIGNORE not effective if it contains a full filename Date: Wed, 19 Aug 2020 12:15:54 -0700 Lines: 34 Approved: bug-bash@gnu.org Message-ID: References: <20200819191554.GA405595@localhost> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet.stanford.edu 1597864573 20615 209.51.188.17 (19 Aug 2020 19:16:13 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org X-Originating-IP: 50.39.163.217 Content-Disposition: inline Received-SPF: pass client-ip=217.70.183.198; envelope-from=josh@joshtriplett.org; helo=relay6-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/19 15:16:05 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20200819191554.GA405595@localhost> Xref: csiph.com gnu.bash.bug:16780 Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/bash-vu7ylu/bash-5.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wno-parentheses -Wno-format-security uname output: Linux s 5.7.0-2-amd64 #1 SMP Debian 5.7.10-1 (2020-07-26) x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 5.0 Patch Level: 18 Release Status: release Description: If FIGNORE contains the complete filename of a file, tab completion will not ignore it. Repeat-By: First, `touch Cargo.{toml,lock}` to create a pair of files with a common prefix. (These two names commonly appear side-by-side in Rust projects, and you almost always want to tab-complete Cargo.toml, not Cargo.lock.) To test the baseline behavior, type `echo C` and press tab; bash will complete "Cargo." and wait for more input. Set FIGNORE=lock and try again; bash ignores Cargo.lock and completes Cargo.toml. Set FIGNORE=argo.lock and try again; bash again ignores Cargo.lock and completes Cargo.toml. Set FIGNORE=Cargo.lock and try again; bash just completes "Cargo." and waits for more input.