zsh-workers
 help / color / mirror / code / Atom feed
From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: eliasghafari <eliasghafari@disroot.org>
Cc: zsh-workers@zsh.org
Subject: Re: [BUG]Filename autocompletion using git-bare repos (--git-dir=... --work-tree=...)
Date: Tue, 12 Sep 2023 11:34:10 +0200	[thread overview]
Message-ID: <CAN=4vMpe3NYqYTHiOp+ApRhfZ6EYEhXygVTE5hMP0uTtRr16og@mail.gmail.com> (raw)
In-Reply-To: <jayiekgd7doualsehpteuujj5cq4g5cuggfj7q72vsxaluacmd@wavkea46lupk>

On Tue, Sep 12, 2023 at 10:54 AM eliasghafari <eliasghafari@disroot.org> wrote:
>
> After using <C-x ?> instead of <Tab> (Thanks Bart) and looking at the output I found
> that:
> alias config='git --git-dir ~/.local/share/dotfiles --work-tree ~'
> works perfectly.
> And Jun T's solution of:
> alias config="git --git-dir=$HOME/.local/share/dotfiles --work-tree $HOME"
> Also works I never knew that there was a difference between ' and ".

Given these two definitions that differ only in quotes:

    alias c1="git --git-dir=$HOME/.local/share/dotfiles --work-tree $HOME"
    alias c2='git --git-dir=$HOME/.local/share/dotfiles --work-tree $HOME'

Can you confirm that the following two commands work as expected?

    c1 diff
    c2 diff

Can you furthermore confirm that only the first of the following works
as expected while the second does not?

    c1 diff <TAB>
    c2 diff <TAB>

If so, this indicates a bug in the completion code.

Roman.


  reply	other threads:[~2023-09-12  9:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-12  8:54 eliasghafari
2023-09-12  9:34 ` Roman Perepelitsa [this message]
2023-09-12 19:25   ` eliasghafari
2023-09-12 19:33     ` Roman Perepelitsa
  -- strict thread matches above, loose matches on Subject: below --
2023-03-09 12:33 eliasghafari
2023-03-09 17:12 ` Bart Schaefer
2023-03-09 19:27 ` Oliver Kiddle
2023-03-10 10:07   ` Elias Ghafari
2023-03-10 10:12     ` Roman Perepelitsa
2023-09-11 15:05       ` Elias Ghafari
2023-09-12  2:26         ` Jun T

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='CAN=4vMpe3NYqYTHiOp+ApRhfZ6EYEhXygVTE5hMP0uTtRr16og@mail.gmail.com' \
    --to=roman.perepelitsa@gmail.com \
    --cc=eliasghafari@disroot.org \
    --cc=zsh-workers@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).