Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_pick_variant
- X-seq: zsh-users 26152
- From: Thomas Lauer <thomas.lauer@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: _pick_variant
- Date: Fri, 13 Nov 2020 17:41:24 +0000
- Archived-at: <https://zsh.org/users/26152>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-11/20201113174124.cb440e381388179852e48c62%40virgin.net>
- Authentication-results: zsh.org; iprev=pass (know-smtprelay-omc-8.server.virginmedia.net) smtp.remote-ip=80.0.253.72; dkim=pass header.d=virgin.net header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=virgin.net; arc=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virgin.net; s=meg.feb2017; t=1605202893; bh=C76pAnpAKNqsr9FXO1rEoS80eikAOjE+0/+l+28Rxz4=; h=Date:From:To:Subject; b=dpbv0Tsm2Q5KO4C9P7aq1pm0I0MKzQsZkAOgLZI9KZRYXwvI1HtKKk3XeX7SOZBAV cZ/b6aAPpKAISSX7NJgApIhBODqUi1h5XG4lt3tfgDRZPKs1QKHa+1CXzVOhFoY2Qu DhzOjE885cPl/Y2ohZtZT1LMichTRPHNZ0u6EGjF6GpJtgKyRuw6g9f9BvsQeK8Hjv i/j8+dKX68J0DABFXa6XtivHGURjj6htRPpOsIXaVTq0wquIJzZeyvWMD4yX2m96uF 75an9cZcuNE8Too54fjDFZ/NHBxtUk9lW7tLPET12zQWL4C5GOXaTM/w7YJbN31Kuz XSi7uoqcPwzvQ==
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- Sender: zsh-users-request@xxxxxxx
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. :-/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author