-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add newline support for the format option #105
Comments
Another possible workaround s to include the newline (ie. not But I agree it would be nice if slop could interpret the sequences by default. |
The trouble with |
A possible POSIX compliant workaround: slop -f '...
' | while read -r ... |
For what it's worth, Issue 8 of POSIX will include the dollar quotes: https://gist.github.com/Earnestly/29deee4f18346da6630ed1df760f1590 |
Currently
slop -f '...'
doesn't produce a newline which makes it difficult to use in aslop | while read -r
pipeline. I have tried adding\n
to the-f
format but it just prints a literal\n
.To workaround this issue I'm using
{ slop -f '...'; printf '\n' } | while read -r ...
(Another workaround is to simply absorb the input with a tool like
awk
)The text was updated successfully, but these errors were encountered: