Seems zsh can’t resume functions? What am i missing?
% zsh -f --no-rcs
% fc -l 1 -1 2>&1|less +G #not using a function
^Z #suspend less
zsh: done fc -l 1 -1 2>&1 |
zsh: suspended less +G
% fg #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 #using a function
^Z #suspend less
zsh: done fc -l 1 -1 2>&1 |
zsh: suspended
% fg #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