With Bash, you have the command :
Null command. No effect; the command does nothing. Exit Status: Always succeeds.
Example
: 'foo'
Does PowerShell have something similar to this?
With the above example, the ForEach-Object
alias %
works
% 'foo'
Or
function : {}
: 'foo'
Or
[void] 'foo'
PowerShell Data Types
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With