Closed jakob1379 closed 1 year ago
This isn't a bug in gum, or in any other application. As such, this issue should probably be closed.
Even though sleep 10m & gum spin -- wait
is one command, that wait
will not work.
wait
can only wait for child processes, and sleep
is not a child process of gum.
You could do a few things:
tail --pid=$pid -f /dev/null
instead of wait (linux only), as in
gum spin -- tail --pid=18889 -f /dev/null
(source)Pardon the hand-wavy explanation, I need do to some reading on child processes. In fact, you might want to do that too!
If it simply requires I child process, that makes perfectly sense!
I'll make a note to make a pull request
Describe the bug waiting for background processes ends instantly and gives exit code 1
To Reproduce
Expected behavior A sweet, sweet spinner running until the wait command exits
Desktop (please complete the following information):
I have read the previous issue https://github.com/charmbracelet/gum/issues/75 which makes sens, but this is a single command and even providing the PID of the background process does not work