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

[BUG] zsh fails to resume function



Hi list, I'm Paolo the zsh maintainer for openSUSE and SLE. A user
reported us a bug, we tracked in our bugzilla instance [1].

It seems zsh fails to re-enter a nested command putted in background
when defined in a function.

I reproduced the bug on a vanilla 5.9 installation, so the bug is not
introduced by any change made downstream.

The followings are the step to reproduced the issue:

% zsh -f
% fc -l 1 -1 2>&1|less +G                               #enter less without using a function
^Z                                                      #suspend less
zsh: done       fc -l 1 -1 2>&1 |
zsh: suspended  less +G
% fg                                                    #zsh re-enters less properly
: q
[1]  - done       fc -l 1 -1 2>&1 |
       continued  less +G
% h(){ fc -l 1 -1 2>&1|less +G;}
% h                                                     #enter less in a function
^Z                                                      #suspend less
zsh: done       fc -l 1 -1 2>&1 |
zsh: suspended
% fg                                                    #zsh fails to re-enter less
[1]  + done       fc -l 1 -1 2>&1 |
       continued
zsh: done                    fc -l 1 -1 2>&1 |
zsh: suspended (tty output)
zsh: done                    fc -l 1 -1 2>&1 |
zsh: suspended (tty output)
%

Can you please confirm that this is a bug for you and give us a link to
backtrack the progress?

Thanks
Paolo

[1] https://bugzilla.suse.com/show_bug.cgi?id=1217304
--
(*_  Paolo Perego                           @thesp0nge
//\  Software security engineer               suse.com
V_/_ 0A1A 2003 9AE0 B09C 51A4 7ACD FC0D CEA6 0806 294B

Attachment: signature.asc
Description: PGP signature



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