Skip to content

Jump to number fails using WMF/PowerShell 5 Production Preview  #61

@LTruijens

Description

@LTruijens

Jump-Location seems to be having problems with PowerShell 5 Production Preview. It is, in some cases, unable to jump given just a number.

PS> mkdir 7\test
PS> cd 7\test
PS> cd ..\..
PS> jumpstat
Weight          Path
------          ----
57,1669311      C:\temp
9,3428682       C:\temp\7\test
PS> j 7
j : Could not find find a suitable match for search query '7' in database
At line:1 char:1
+ j 7
+ ~~~
    + CategoryInfo          : NotSpecified: (:) [Set-JumpLocation], LocationNotFoundException
    + FullyQualifiedErrorId : Jump.Location.LocationNotFoundException,Jump.Location.SetJumpLocationCommand

It does work again if the folder with the number is in the jumpstats

PS> cd 7
PS> cd ..
PS> jumpstat
Weight          Path
------          ----
57,1669311      C:\temp
9,3428682       C:\temp\7\test
1,5918183       C:\temp\7
PS> j 7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions