Bug 1217304 - zsh fails to resume function
Summary: zsh fails to resume function
Status: CONFIRMED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Paolo Perego
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on: 1216391
Blocks:
  Show dependency treegraph
 
Reported: 2023-11-18 16:41 UTC by greg mott
Modified: 2023-11-30 18:00 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
paolo.perego: needinfo? (novell)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description greg mott 2023-11-18 16:41:27 UTC
% 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)  
%

# inxi -bz
System:
  Kernel: 6.5.9-1-default arch: x86_64 bits: 64 Console: pty pts/9
    Distro: openSUSE Tumbleweed 20231108
Machine:
  Type: Laptop System: HP product: HP EliteBook 840 G3 v: N/A serial: <filter>
  Mobo: HP model: 8079 v: KBC Version 85.78 serial: <filter> UEFI: HP
    v: N75 Ver. 01.39 date: 04/16/2019
Battery:
  ID-1: BAT0 charge: 39.9 Wh (97.1%) condition: 41.1/41.1 Wh (100.0%)
CPU:
  Info: dual core Intel Core i5-6200U [MT MCP] speed (MHz): avg: 800
    min/max: 400/2800
Graphics:
  Device-1: Intel Skylake GT2 [HD Graphics 520] driver: i915 v: kernel
  Device-2: Cheng Uei Precision Industry (Foxlink) HP HD Camera
    driver: uvcvideo type: USB
  Display: server: X.Org v: 21.1.9 with: Xwayland v: 23.2.2 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915 resolution:
    1: 1366x768~60Hz 2: 1920x1080~60Hz 3: 1366x768~60Hz
  API: OpenGL v: 4.6 Mesa 23.2.1 renderer: Mesa Intel HD Graphics 520 (SKL
    GT2)
Network:
  Device-1: Intel Ethernet I219-V driver: e1000e
  Device-2: Intel Wireless 8260 driver: iwlwifi
  Device-3: Intel Bluetooth wireless interface driver: btusb type: USB
Drives:
  Local Storage: total: 232.89 GiB used: 226.23 GiB (97.1%)
Info:
  Processes: 338 Uptime: 2d 14h 32m Memory: available: 15.5 GiB
  used: 6.57 GiB (42.4%) Shell: Bash inxi: 3.3.27
Comment 1 Paolo Perego 2023-11-29 11:23:34 UTC
Hi, I'm able to reproduce this on the latest vanilla zsh version downloaded from zsh.org.

I will then create an issue to upstream.
Comment 2 Paolo Perego 2023-11-30 08:38:08 UTC
zsh team answered this issue is already fixed in their current git HEAD in November 2022.

Patches are available, I will now port them to zsh package we ship
Comment 3 Paolo Perego 2023-11-30 09:11:54 UTC
I don't think this bug is related to the precmd one... why are you saying this?