PR PowerShell/PowerShell#5051 adds the capability of going back to the previous location(s) when using Set-Location to enable cd - scenarios (a feature that shells like e.g. bash have and is commonly used by people by Unix backgrounds; git has a similar functionality as well btw)
Bash allows only to go back one location but PowerShell allows up to 20 locations.
Example:
C:\> cd C:\foo
C:\foo> cd C:\bar
C:\bar> cd -
C:\foo> cd -
C:\>
In Contrast to the bash implementation, PowerShell handles the history internally (bash does by setting an environment variable named OLDPWD)
Issue Details
Version(s) of document impacted
Reason(s) for not selecting all version of documents
PR PowerShell/PowerShell#5051 adds the capability of going back to the previous location(s) when using
Set-Locationto enablecd -scenarios (a feature that shells like e.g.bashhave and is commonly used by people by Unix backgrounds; git has a similar functionality as well btw)Bash allows only to go back one location but PowerShell allows up to 20 locations.
Example:
In Contrast to the
bashimplementation, PowerShell handles the history internally (bash does by setting an environment variable namedOLDPWD)Issue Details
Version(s) of document impacted
Reason(s) for not selecting all version of documents