Skip to content

Conversation

@evverx
Copy link
Contributor

@evverx evverx commented Nov 17, 2015

Fixes:

$ ID=$(journalctl --new-id128 | sed -n 2p)
$ printf $'<5>\n<6>\n<7>\n' | systemd-cat -t "$ID" --level-prefix true
$ journalctl --flush
$ journalctl -b  -t "$ID" -q
Nov 17 21:50:53 wily-64 d5d77f0a779d4c80a40b45434ad44571[21535]:
Nov 17 21:50:53 wily-64 d5d77f0a779d4c80a40b45434ad44571[21535]:
Nov 17 21:50:53 wily-64 d5d77f0a779d4c80a40b45434ad44571[21535]:

# should be nothing
$ ID=$(journalctl --new-id128 | sed -n 2p)
$ printf $'\tfirst\n\t\tsecond\n' | systemd-cat -t "$ID" --level-prefix false
$ journalctl --flush
$ journalctl -b -o cat -t "$ID"
first
second

# should be
#    first
#        second

@evverx evverx force-pushed the fix-stdout-parsing branch from 14a097b to cfa1b98 Compare November 18, 2015 00:19
@zonque zonque added the journal label Nov 18, 2015
poettering added a commit that referenced this pull request Nov 27, 2015
@poettering poettering merged commit d353a16 into systemd:master Nov 27, 2015
evverx added a commit to evverx/systemd that referenced this pull request Nov 27, 2015
@evverx evverx deleted the fix-stdout-parsing branch November 27, 2015 13:38
martinpitt pushed a commit to martinpitt/systemd that referenced this pull request Dec 28, 2015
tblume pushed a commit to tblume/systemd-testsuite-suse that referenced this pull request Mar 8, 2016
tblume pushed a commit to tblume/systemd-testsuite-suse that referenced this pull request Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants