[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#31495: 26.1; filename completion -vs- "*"
From: |
Michael Albinus |
Subject: |
bug#31495: 26.1; filename completion -vs- "*" |
Date: |
Sat, 19 May 2018 20:17:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Tino Calancha <tino.calancha@gmail.com> writes:
Hi Tino,
> We could even let the user enable globstar in those shells supporting
> it but having it disable by default (e.g. bash).
What about ls-lisp?
> +(defconst dired-enable-globstar-in-shell
> + '(("ksh" . "set -G")
> + ("bash" . "shopt -s globstar"))
> + "Alist of (SHELL . COMMAND), where COMMAND enables globstar in SHELL.
> +If `dired-maybe-use-globstar' is non-nil, then `dired-insert-directory'
> +checks this alist to enable globstar in the shell subprocess.")
This works only if the shell name like bash or ksh is used. Often, just
/bin/sh is used, and you don't know which real shell this file is linked to.
Best regards, Michael.