Skip to content

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

Closed

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

Activity

  1. added
    status:needs-triage
    on May 17, 2023
  2. fdncred commented on May 17, 2023

    @fdncred
    Contributor

    That is a bizarre file name. I'm not surprised it failed with spaces, parens, brackets. Nushell should handle this better.

  3. added
    category:bug
    and removed
    status:needs-triage
    on May 17, 2023
  4. added
    A:glob
    on Jul 9, 2023
  5. colemickens commented on Aug 16, 2023

    @colemickens
    Author

    This is still an issue, not complaining, just providing another data point:

    ╭ zeph  ~ 10hr 56min 54sec 742ms                                                                                                                                                                                                                                                            
    ╰─▶ rm `Starfield Official Gameplay Trailer [kfYEiTdsyas].webm`                                                                                                                                                                                                                             
    Error:   × File(s) not found                                                                                                                                                                                                                                                                
       ╭─[entry #2:1:1]                                                                                                                                                                                                                                                                         
     1 │ rm `Starfield Official Gameplay Trailer [kfYEiTdsyas].webm`                                                                                                                                                                                                                            
       ·    ────────────────────────────┬───────────────────────────                                                                                                                                                                                                                            
       ·                                ╰── File(s) not found                                                                                                                                                                                                                                   
       ╰────           
    

    That was the result of "r" "m" <space> "S" "t" "a" <tab> <enter>

  6. dedebenui commented on Aug 16, 2023

    @dedebenui

    Is this duplicate of #9884 ? (Actually, #9884 is a duplicate of this issue I guess)
    Also, this is related to #9790 where we discuss about how to handle glob pattern vs strings/paths

  7. colemickens commented on Aug 16, 2023

    @colemickens
    Author

    I suspect you're right that it's related to #9790. Please feel free to close in favor of that one, it seems like it has more investigation/discussion.

  8. amtoine commented on Aug 16, 2023

    @amtoine
    Member

    let's close this issue in favor of #9790 then 😌
    feel free to reopen if it wasn't that much of a duplicate after all 😉

  9. added
    deprecated:duplicate
    on Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:globcategory:bugdeprecated:duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions