GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Make $PSScriptRoot and $PSCommandPath also reflect the true filesystem locations for scripts invoked via symlinks · Issue #11054 · PowerShell/PowerShell Closed Labels Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-AnsweredThe question is answered.The question is answered.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime DescriptionSummary of the new feature/enhancementSymlinks (symbolic links) are a staple of the Unix world and are becoming increasingly common on Windows too. For scripts invoked via symlinks, the "reflective" variables that contain the running script's location (directory, (Reporting the link's information is consistent with the behavior of POSIX-like shells such as Bash, via While you can manually investigate the paths contained in these variables to find the true script location and file name, it would be nice to have this information automatically available. As an aside: Even manual investigation is currently nontrivial - see #10640 Proposed technical implementation details (optional)One option that doesn't require introducing new automatic variables (which is always problematic) is to add a That way, you could use While somewhat obscure, this follows the pattern of the Documenting these non-obvious properties clearly should be sufficient, however. Activity
MetadataMetadataAssigneesLabelsIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-AnsweredThe question is answered.The question is answered.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |