zsh-users
 help / color / mirror / code / Atom feed
* _pick_variant
@ 2020-11-13 17:41 Thomas Lauer
  2020-11-12 18:35 ` _pick_variant Bart Schaefer
  0 siblings, 1 reply; 13+ messages in thread
From: Thomas Lauer @ 2020-11-13 17:41 UTC (permalink / raw)
  To: zsh-users

I tend to try and solve problems on my own but this one has really left me puzzled.

Consider this simple function in my zsh init:
mde5() {
	local sum=$(md5sum $1)
	echo $sum
	echo $sum md5 | cut -d " " -f 1,4 | xclip -i -selection clipboard
}

This works as expected. However, if I rename it to md5() { ... }, zsh hangs when I type
md5 a<tab> to expand a filename. Ctrl+C shows this message:
" illed by signal in _pick_variant after 1s" (yes the first character is a blank).

Hm... after going through a few permutations I found out that the hang disappears if I remove the final xclip command, ie:
md5() {
	local sum=$(md5sum $1)
	echo $sum
	echo $sum md5 | cut -d " " -f 1,4
}

No hangs and I have no idea what's going on. :-/


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-11-14 19:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-13 17:41 _pick_variant Thomas Lauer
2020-11-12 18:35 ` _pick_variant Bart Schaefer
2020-11-12 18:40   ` _pick_variant Roman Perepelitsa
2020-11-12 19:07     ` _pick_variant Ray Andrews
2020-11-12 19:17       ` _pick_variant Roman Perepelitsa
2020-11-12 19:20       ` Fwd: _pick_variant JAMES R CUTLER
2020-11-13  9:34   ` _pick_variant Thomas Lauer
2020-11-13 10:42     ` _pick_variant Roman Perepelitsa
2020-11-13 10:57       ` _pick_variant Thomas Lauer
2020-11-13 11:18       ` _pick_variant Roman Perepelitsa
2020-11-13 22:26       ` _pick_variant Bart Schaefer
2020-11-14  9:56         ` _pick_variant Thomas Lauer
2020-11-14 19:21           ` _pick_variant Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).