-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
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
Labels
No labels