[Bug 1893367] Re: calibredb list checks terminal width even when output is being piped

2021-05-22 Thread Paul White
Assuming the Ubuntu task was created in error so marking "Invalid" ** Changed in: ubuntu Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1893367 Title: calibredb list ch

[Bug 1893367] Re: calibredb list checks terminal width even when output is being piped

2020-08-29 Thread Sandra Snan
Oh, now I get it: the default behavior is good for calibredb list|less -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1893367 Title: calibredb list checks terminal width even when output is being pip

[Bug 1893367] Re: calibredb list checks terminal width even when output is being piped

2020-08-28 Thread Sandra Snan
That's exactly what happened to me. Suddenly it didn't work as expected. It turned out that I was calling the script from a slighly narrower terminal window. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bu

[Bug 1893367] Re: calibredb list checks terminal width even when output is being piped

2020-08-28 Thread Sandra Snan
Here is the jq expression that'll do that: `calibredb list --for-machine| jq -r '.[]|(.id|tostring)+" "+.title+" "+.authors'` I'm admittedly curious about what piping&redirecting behavior would break if window-resizing would only change the line length on tty! -- You received this bug notificat

[Bug 1893367] Re: calibredb list checks terminal width even when output is being piped

2020-08-28 Thread Sandra Snan
Yes, good idea. I am going to parse JSON to construct lists of "$ID $BookTitle $Author" and then process those lists, instead of using -w 1. Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/18