ch.vorburger.exec icon indicating copy to clipboard operation
ch.vorburger.exec copied to clipboard

`who am i`

Open vorburger opened this issue 11 months ago • 1 comments

In https://github.com/enola-dev/enola/pull/1358 I have stumbled upon a strange issue where exec-ing who am i through this library does not capture it's output - although running it from a traditional shell does; e.g. it's:

vorburger pts/1        2025-05-03 00:18 (tmux(2695).%19)

I haven't found an obvious cause for this strange behaviour yet, and it's not clear to me if it's something wrong in that code, or perhaps even here in this projet - is there perhaps some race condition where output is lost?!

As a first step, I'll therefore try to reproduce the issue with an "upstream" test case in this project.

vorburger avatar May 04 '25 17:05 vorburger

#270 illustrates that whoami works, but who am i currently does not work.

This is (apparently; TIL) because of what https://g.co/gemini/share/ba6c37b42c13 explains.

@szermatt @freddenis what a "fun" corner case! 🙄

vorburger avatar May 04 '25 17:05 vorburger