FFFF cd completion breaks when an apostrophe is present in the path · Issue #2299 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

cd completion breaks when an apostrophe is present in the path #2299

@tgkokk

Description

@tgkokk
$ mkdir -p a\'b/{a,b}
$ cd a\'[TAB] # Error
$ cd a\'b/[TAB] # Error
$ cd a\'b/a[TAB] # Error
$ cd a\'b/a/[TAB] # Error

The error in all cases is:

- (line 1): begin; printf "%s\n" a'*/
 ;end <&3 3<&-
                                 ^
from sourcing file -
    called on line 60 of file /usr/local/share/fish/functions/eval.fish

in function 'eval'
    called on line 45 of file /usr/local/share/fish/functions/__fish_complete_cd.fish

in function '__fish_complete_cd'
    called on standard input

in command substitution
    called on standard input

source: Error while reading file '-'

where a'*/ (the printf argument) changes according to the argument passed to cd.

Other commands (e.g. mkdir) work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0