Question:
With Bash, you have the command :
1 2 3 4 5 6 |
Null command. No effect; the command does nothing. Exit Status: Always succeeds. |
Example
1 2 |
: 'foo' |
Does PowerShell have something similar to this?
Answer:
With the above example, the ForEach-Object
alias %
works
1 2 |
% 'foo' |
Or
1 2 3 |
function : {} : 'foo' |
Or
1 2 |
[void] 'foo' |