Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Cant fg a suspended su (4.1.0-dev-7)



Philippe Troin said:
> Philippe Troin <phil@xxxxxxxx> writes:
> 
> > I'll check out how the other shells (bash and tcsh) handle this case
> > and will post a patch for bin_suspend() later.
> 
> I was looking at bash, and they do not do anything special (like
> reverting to the original pgrp) before suspending.
> 
> Can you try su'ing with bash? I was able to get it stuck with my local
> test program here... but I do not have GNU su installed (yet).

Looks like bash can deal with GNU su.  So can tcsh. 

% su --shell=/bin/bash peta
Password: 
[peta@aragorn zsh]$ suspend
zsh: suspended (signal)  /bin/su --shell=/bin/bash peta
1 % fg
[1]  + continued  /bin/su --shell=/bin/bash peta

11779 11790 11790 11790 pts/2    12959 S      501   0:00      \_ -zsh
11790 12894 12894 11790 pts/2    12959 S        0   0:00          \_ /bin/su --shell=/bin/bash peta
12894 12903 12903 11790 pts/2    12959 S      501   0:00              \_ bash
12903 12959 12959 11790 pts/2    12959 R      501   0:00                  \_ ps xajfw


--
Peter Whaite
VP Research and Development, Cynovad - ShadeScan Division.
460 ste-Catherine O, bureau 942, Montreal, Quebec. H3B 1A7
Phone: (514) 395 3905 (#204)  Fax:   (514) 878 2874



Messages sorted by: Reverse Date, Date, Thread, Author