GNOME Bugzilla – Bug 113909
Export command line to support '-' as filename for STDOUT
Last modified: 2019-03-20 11:07:01 UTC
An enhancement that I would like is to have command line support for putting an exported file out to STDOUT. In this case all error messages and informational messages couldn't be sent to STDOUT (as they'd screw up the file).
This has also been requested by a Debian user: ============================================================================== How about support export to stdout, so I can use this command dia -t eps -e - foo.dia | epstopdf --filter > foo.pdf ============================================================================== I.e., "-" would be an alias for /dev/stdout. See also: http://bugs.debian.org/328904
At Debian, I added a patch that redirects all diagnostics and errors to stderr so that we can say "dia -e /dev/stdout ... | ...". I'm attaching patches that apply to the GIT master and dia-0-97 branches, respectively. Alternatively, you can merge from http://git.antcom.de/?p=dia.git Branches: master -> master-msgs-to-stderr dia-0-97 -> dia-0-97-msgs-to-stderr
Created attachment 204391 [details] [review] Patch that applies to master
Created attachment 204392 [details] [review] Patch that applies to dia-0-97
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/dia/issues/84.