You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The commands such as ls, dir, and many other Powershell commands such as Get-Clipboard search for an exectuable in $env:PATH or %PATH%. The following is the error thrown
exec: "ls": executable file not found in%PATH%
(Replace ls with any other Powershell command that produces an output)
Since it explicitly mentions %PATH% (instead of $env:PATH), I even tried the same command in cmd (I was using PowerShell 7 previously). I still got the same error.
To Reproduce
Steps to reproduce the behavior:
Open Windows Terminal (with either Powershell or Command Prompt profile)
Type freeze --execute "ls", freeze --execute "dir" or freeze --execute "<any powershell command>"
You'll now see the error
Expected behavior
All the Windows-native or Powershell commands must work
Screenshots
Desktop (please complete the following information):
OS: Windows 11 Version: 10.0.22631.3374
The text was updated successfully, but these errors were encountered:
This works. But I understand that Linux has binaries for each command be it ls or anything. But in Windows, is it possible to emulate the same function similar to Linux but not checking for availability of a binary in the PATH? I mean, could you please make it to execute directly in the default shell (without using any alias)?
Describe the bug
The commands such as
ls
,dir
, and many other Powershell commands such asGet-Clipboard
search for an exectuable in$env:PATH
or%PATH%
. The following is the error thrown(Replace
ls
with any other Powershell command that produces an output)Since it explicitly mentions
%PATH%
(instead of$env:PATH
), I even tried the same command incmd
(I was using PowerShell 7 previously). I still got the same error.To Reproduce
Steps to reproduce the behavior:
freeze --execute "ls"
,freeze --execute "dir"
orfreeze --execute "<any powershell command>"
Expected behavior
All the Windows-native or Powershell commands must work
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: