Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Strange behavior of $jobstates
- X-seq: zsh-users 23756
- From: Manabu Matsui <manabu.matsui@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Strange behavior of $jobstates
- Date: Tue, 13 Nov 2018 13:46:00 +0900
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=kAxdLOaUhw+kkayGfcgTJikaWuHKQY/WsrCYuUaKucQ=; b=ncNlrKs+SWveCD67wOv4ARhLZcGeQ/Y/TXvE0swPVO42WbNjO/BTsM9iPqFI4ruvEK VkXT1OW45rvIeQal2cIGEvlHmvAGHbzI2zZa0K5w9zEEviLUNy9aMwRDdGUWUrNSIcce pif9gdbAtTb1FVkwUbnW3QNw1HNc0A8gEQ0XFpXU//clpoNhh0ysLbAi9V3Wtw4ye66K 3KAl3HhkSZqR4jgyUm0GEw5er410WxxiRGiiXqdTcNmbHP1cIL2hjKkUgdlWrT5BSqXQ EXuQXXP4bc5CoKQzO4zdAlHi+TaGH9B5/X8Fq6mCLZSH9MkbpHaBG4HQNboKpT3kbSLn 70ug==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
I found a strange behavior of $jobstates. When I pipe the output of
echo $ jobstates,
its output is empty. This has occurred for zsh 5.6.2 (x86_64-apple-darwin18.0.0)
installed on my mac with homebrew.
% sleep 30
sleep 30
^Z
zsh: suspended sleep 30
% echo $jobstates
suspended:+:16815=suspended
% echo $jobstates | cat
% echo $jobstates
suspended:+:16815=suspended
This does not occur for zsh 5.4.2 (x86_64-ubuntu-linux-gnu) on ubuntu.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author