phyver / GameShell

a game to learn (or teach) how to use standard commands in a Unix shell
GNU General Public License v3.0
2.12k stars 135 forks source link

macOS - mission 29 got skipped #95

Closed Aierbote closed 2 years ago

Aierbote commented 2 years ago

First thing first. Mission 28 was hell XD I'm pretty used to either pgrep + pkill and once I noticed I just let those imp spells multiply I've even tried killall spell

Back on topic:

Process names should be equal to the corresponding filename for mission processes/03_pstree_kill/deps.sh.
Error: mission 29 is cancelled because some dependencies are not met.

It would have been nice to see this pstree in action, even because I used tree even before it was introduced

phyver commented 2 years ago

It seems running ps or pstree on (most?) MacOS shows running scripts as

$ ps
... sh script.sh

instead of

$ ps
... script.sh

This means that depending on the arguments, they usually show as

$ ps
... sh

which makes it impossible to differentiate between the different running scripts. When I believe that's the case, I skip the mission. :( (That's the meaning of Process names should be equal to the corresponding filename.)

If that's indeed what happens, I don't know how to fix that!