On 07/09/2021 13:50, kuba jamro wrote:
> Thanks for that.
>
> Now that I think about it I think I will create a wrapper for myself to
> have the --quiet option on by default.
That does not make much sense [1], but you're free too pick your poison.
[1] You have a process that does the equivalent of
import.py extract documents/ >ledger.beancount 2>&1
and you complain that standad error ends up in ledger.beancount. Your
solution is to use a wrapper that does:
#!/bin/sh
command=$1
shift
case $1 in
extract)
import.py $command -q $*
;;
*)
import.py $command $*
;;
esac
thus suppressing output to standard error from import.py estract.
I argue that this is way more complex than required and, as already
pointed out, it writes to the ledger the error messages reported by the
importers and silently ignores them.
Wouldn't it be much simpler to drop the redirection of standard error to
standard output (aka 2>&1) from the invocation of import.py or, as I
understand your use case, to instruct Vim to do not capture the standard
error of the process it invokes?
Cheers,
Dan
--
You received this message because you are subscribed to the Google Groups
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/4d54fc0d-d683-e417-c603-50f9bcd01b25%40grinta.net.