Skip to content
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

Can't pipe to head #282

Closed
mohd-akram opened this issue Feb 24, 2022 · 0 comments · Fixed by #363
Closed

Can't pipe to head #282

mohd-akram opened this issue Feb 24, 2022 · 0 comments · Fixed by #363
Assignees

Comments

@mohd-akram
Copy link

Expected behavior

mqtt sub exits once head exits. The CLI should exit on SIGPIPE.

Actual behavior

mqtt sub keeps running despite SIGPIPE.

To Reproduce

Steps

  1. Run mqtt sub -V 3 -h example.com -t topic | head -n1

Details

  • Affected MQTT CLI version(s):
  • Used JVM version:
4.7.4
Picocli 4.6.2
JVM: 11.0.14.1 (Red Hat, Inc. OpenJDK 64-Bit Server VM 11.0.14.1+1)
OS: Linux 5.16.9-200.fc35.x86_64 amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants