Skip to content

fail to change to a directory setted with read #4566

Open

Description

@Estirp

fish, version 2.7.0

Fish fail to change to a directory setted with read.

bug> ls
' b'/
bug> read --shell dir
read> \ b/ (tab pressed)
bug> cd $dir
cd: La fonction '\ b/' n'existe pas (function '\b/' does not exists)
bug> echo $dir
\ b/
bug> cd \ b/
b/ b> 

It seems about the escape char :

bug> read  dir
read>  b
bug> cd $dir
b/ b> 

Activity

  1. added
    bug
    on Dec 1, 2017
  2. added this to the fish-future milestone on Dec 1, 2017
  3. ridiculousfish commented on Dec 1, 2017

    @ridiculousfish
    Member

    This looks like a real bug in fish. read does not interpret escapes, but the tab completion will insert a backslash escape. Thanks for filing!

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

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions