nushell: Escaping appears broken for [ character

Describe the bug There doesn’t appear to be a way to escape [] in filenames, and tab completion doesn’t provide working solutions, I’ve not explored other traditionally shell-escaped characters

To Reproduce Steps to reproduce the behavior:

  1. touch “[Hello World].txt”
  2. ls
  3. ls “[Hello World].txt”

I see:

> ls
──────────┬───────────────────
 name     │ [Hello World].txt
 type     │ File
 size     │ 0 B
 modified │ 6 mins ago
──────────┴───────────────────

> ls "[Hello World].txt"
error: Invalid File or Pattern
- shell:1:22
1 | ls "[Hello World].txt"
  |    ^^^^^^^^^^^^^^^^^^^ invalid file or pattern

Expected behavior I would expect similar outputs between lines 2 and 3

Configuration (please complete the following information):

  • OS: Linux williwaw 5.3.0-46-generic #38-Ubuntu SMP Fri Mar 27 17:37:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  • Version: e3da037b801cbc85383dc119fdf79899c8ed62cd

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (6 by maintainers)

Most upvoted comments

@thegedge If @fpatwa is not working anymore, I’d like to work on this!

@diohabara Please go ahead! @thegedge Unfortunately I did not get a chance to work on this.

@fpatwa Still working on this? Need any help, or should we unassign?

Sorry got delayed on this but would still like to keep working on it if its okay! Thanks.