Passing the preview flag when inputing from stdin doesn't make sense
dev-ardi opened this issue · comments
Orion (Ardi) Gonzalez commented
It should either fail completely or send a warning to stderr at least
Blair Noctis commented
What do you mean by "passing the preview flag when outputing to stdout"? If I understand correctly, it's the flag that makes sd output to stdout, right?
Orion (Ardi) Gonzalez commented
Oops, I meant inputing from stdin. as in sd find replace --preview
$ sd --preview a x
ardi
^D
xrdi
as it's redundant