meta icon indicating copy to clipboard operation
meta copied to clipboard

Question: Can I tell `meta exec` to run commands using Powershell insetad of CMD?

Open eddex opened this issue 4 years ago • 4 comments

🤓 Question

I'm using meta on Windows 10 in PowerShell 7.1.3. When I run meta exec "<some command>", meta seems to use cmd instead of Powershell to run the command.

Example:

  • meta exec "dir" works fine
  • meta exec "Get-ChildItem" returns an error "'Get-ChildItem' is not recognized as an internal or external command"

Of course I can run Powershell commands like this: meta exec "pwsh -c Get-ChildItem". But I'd like to be able to just pass in a Powershell command to meta exec.

Is there a way to change the default shell meta exec uses to run the commands?

eddex avatar Jul 30 '21 06:07 eddex

Not currently, but looks very doable - PRs welcome - would go in here as an option passed to the call: https://github.com/mateodelnorte/meta-exec/blob/master/index.js

https://stackoverflow.com/a/61219838/237676

patrickleet avatar Jul 30 '21 14:07 patrickleet

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 08 '22 23:01 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 30 '22 05:03 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 12 '22 21:06 stale[bot]