You nailed it.

I forgot to put >/dev/null there.

Osamu
On Mon, 2026-03-09 at 15:08 +0100, Antoine Cellerier wrote:
> Thanks for the quick replies.
> 
> 
> On Mon, 2026-03-09 at 20:15 +0900, Osamu Aoki wrote:
> > Hi,
> > 
> > Can you edit /usr/share/im-config/initializer as root?
> > 
> > Please remove following 2 lines and see what happens?
> > ---
> > else
> >     LOGGER='>&2 echo'
> > ---
> 
> Doesn't change anything, the first if statement matches.
> But interestingly, when running which -s systemd-cat it outputs exactly
> the same message:
> 
> /usr/bin/systemd-cat -> /usr/bin/systemd-cat
> 14:59 antoine@yoga ~% which -s systemd-cat
> /usr/bin/systemd-cat -> /usr/bin/systemd-cat
> 
> For some reason the which output ends up on stdout it seems:
> 
> 15:02 antoine@yoga /tmp% if which -s systemd-cat; then echo found; fi 
> /usr/bin/systemd-cat -> /usr/bin/systemd-cat
> found
> 15:02 antoine@yoga /tmp% if which -s systemd-cat >/dev/null; then echo
> found; fi
> found
> 
> What I find to be curious is why it happens on zsh and not bash ...
> Here's a one line repro on my system which is independent of my zshrc
> config:
> 15:06 antoine@yoga ~% zsh -c "source /etc/profile"
> /usr/bin/systemd-cat -> /usr/bin/systemd-cat
> 15:06 antoine@yoga ~% bash -c "source /etc/profile"
> 15:06 antoine@yoga ~%
> 
> On Mon, 2026-03-09 at 20:40 +0900, Osamu Aoki wrote:
> > Can you open 2 terminals?
> > 
> > On one terminal-1
> > journalctl --user -b -t test-case -f
> > 
> > On another terminal-2
> > systemd-cat -t test-case ls
> 
> Yep the ls output from the 2nd terminal properly shows up in followed
> output in the first one. No other unexpected outputs in any of the two.
> 
> Do let me know if I can try anything else out.

Reply via email to