-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Bad error message when using Get-Content with a Directory #2686
Copy link
Copy link
Closed
Labels
Committee-ReviewedPS-Committee has reviewed this and made a decisionPS-Committee has reviewed this and made a decisionResolution-FixedThe issue is fixed.The issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues
Metadata
Metadata
Assignees
Labels
Committee-ReviewedPS-Committee has reviewed this and made a decisionPS-Committee has reviewed this and made a decisionResolution-FixedThe issue is fixed.The issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues
I just installed the latest release of the Powershell by typing:
sudo dpkg -i powershell_6.0.0-alpha.12-1ubuntu1.16.04.1_amd64.debThere was no errors during installation, but it seems that I have no access to Linux paths from Powershell (even as a root).
Steps to reproduce
Run powershell and type:
Get-Content ~Expected behavior
Should provide content of the home directory of current user (similarly as Linux command
ls ~).Please note that even if I run powershell as root (by typing
sudo powershell) I receive mentioned error.Actual behavior
"PermissionDenied" error
Trying as a root:
Environment data
I use Ubuntu 16.04 LTS 64-bit.