Skip to content

tab completion + mv results in "could not file any files matching this glob pattern" #9222

@colemickens

Description

@colemickens

Describe the bug

Today I had to drop to zsh to tab complete and move a complexly named file:

zsh: mv Rick<tab> gets me:

❯ mv Rick\ Astley\ -\ Never\ Gonna\ Give\ You\ Up\ \(Official\ Music\ Video\)\ \[dQw4w9WgXcQ\].webm rick.webm 

nu: same thing gets me:

╭ zeph  /tmp 0s ✘1 
╰─▶ mv `Rick Astley - Never Gonna Give You Up (Official Music Video) [dQw4w9WgXcQ].webm` rick.webm                                                                                                                  
Error: 
───────────────────────────────────────┬────────────────────────────────────────                             
·                                            ╰── could not find any files matching this glob pattern 

How to reproduce

try to move a complexly named file by tab completing it

Expected behavior

whatever tab completion offers should be a useable string identifier to nushell to mean that file

Screenshots

No response

Configuration

key value
version 0.80.0
branch
commit_hash
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.69.0 (84c898d65 2023-04-16) (built from a source tarball)
cargo_version cargo 1.69.0
build_time 1980-01-01 00:00:00 +00:00
build_rust_channel release
features default, zip
installed_plugins

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:globBehavior around file-system globbing with regular commands or `glob`. See also A:quoting/expansioncategory:bugSomething isn't workingdeprecated:duplicate(deprecated: use GitHub's "close as duplicate" feature) This issue is a duplicate of another issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions