hedgedoc / hedgedoc/cli

improve support for export to stdout

Open
#55 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
166
Forks
40
PR merge metrics
No merged PRs in 30d

Description

When passing `-` as output file, it mostly works: Both curl and wget treats that as a redirection to stdout.

Unfortunately the shell script does not expect this (which is a common pattern in POSIX-like tools):

a) An annoying trailing line containing the lone dash is appended.
b) Exporting as slides does not support this.

For both cases, dash should here be captured and an appropriate action (either nothing or a graceful error message emitted to stderr) should be taken instead.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.