Utils/yes.ps1
|
Register-GnuUtil @{ Name = 'yes' Category = 'Shell helpers' Synopsis = 'Output a string repeatedly until killed.' Usage = @('yes [STRING]...', 'yes OPTION') Description = @("Repeatedly output a line with all specified STRING(s), or 'y'.") StopAtFirstOperand = $true Notes = @( 'PowerShell note: a PowerShell function cannot stop the command that feeds it, so', '"yes | head" never finishes. Use "yes | Select-Object -First N" instead.' ) } |