From: Aurélien <orel_jf@yahoo.fr>
To: zsh-users@zsh.org
Subject: help for writing GNU stow completion
Date: Tue, 6 Aug 2019 19:04:00 +0200 [thread overview]
Message-ID: <1e5195bb-3126-8d0c-8a6a-1f5a5fd2a6c0@yahoo.fr> (raw)
Hello,
I started working on a completion script for GNU Stow. The work in
progress version is visible on github
(https://github.com/zsh-users/zsh/pull/36/files). It works, but I'm
stuck on the evaluation of a variable like "$HOME"....
Context: GNU Stow is a symbolic link manager, which is based on packages
stored in a directory (the '--dir' option). The completion allows to
propose the packages present in this directory.
From the command line, when I try to complete something like this:
% stow --dir=$HOME/.dotfiles/
I get: 'no packages found in $HOME/.dotfiles/'
It seems that "$HOME" is not evaluated, and it is the same with "~". Is
there a way to evaluate these elements?
Thank's
--
Aur??lien
next reply other threads:[~2019-08-06 17:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-06 17:04 Aurélien [this message]
2019-08-15 23:36 ` dana
2019-08-16 1:28 ` Daniel Shahaf
2019-08-16 1:54 ` dana
2019-08-17 7:48 ` Aurélien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1e5195bb-3126-8d0c-8a6a-1f5a5fd2a6c0@yahoo.fr \
--to=orel_jf@yahoo.fr \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).