Skip to content

Redirect stdin from /dev/null when checking version - #35

Merged
wom-bat merged 1 commit into
masterfrom
delete-leftover-stdin
Oct 1, 2026
Merged

wom-bat merged 1 commit into
masterfrom
delete-leftover-stdin

Conversation

@wom-bat

@wom-bat wom-bat commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Otherwise stuff typed to mq.sh's stdin is echoed by the remote shell, and can wreck the version check.

Otherwise stuff typed o `mq.sh`'s stdin is echoed by the remote shell,
and can wreck the version check.

Signed-off-by: Peter Chubb <Peter.Chubb@unsw.edu.au>
@wom-bat
wom-bat requested a review from midnightveil October 1, 2026 07:44

@midnightveil midnightveil left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes my issue!

For context, this kept happening to me:

[julia@eta-carinae tmp]$ mq.sh sem dumpall
dddddddddddddddddddddddddddddddddddddddddddddddddddd1c1                  --- me typing lots of 'd' characters
< 5
---
> ddd5
Local version of mq.sh appears to differ from version on tftp.keg.cse.unsw.edu.au at /var/cache/machinelocks

@wom-bat
wom-bat merged commit ae07464 into master Oct 1, 2026
6 of 7 checks passed
@wom-bat
wom-bat deleted the delete-leftover-stdin branch October 1, 2026 09:48
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 this pull request may close these issues.

2 participants