> It is. If I open two MSYS shell windows, and run (say) 'sleep 120' in
> one of them, then 'ps -ef' in the other, I see two sh.exe processes
> running, with sleep.exe as a child of one of them. Two sh.exe and one
> sleep.exe process also show up in Windows Task Manager, so I don't know
> what your SysInternals Process Explorer is doing there.
Yes, your are right. Sysinternal Process Explorer doesn't report sleep as a child.
But it is a child: killing the sh.exe kills also the child sleep.
> 2- When msys starts, Is it possible to launch a shell script without
> spawning two shell processes?
> If you source the script, it should run in the context of the primary
> shell; try:
> start /bin/sh.exe --login -c 'source path/to/script args ...'
> (However, I don't think -c and -i can be used together successfully).
source command is OK, and the -i option removed.
Thanks again and Regards.