Running this script with your own bash path demonstrates the bug.
#!/home/ian/opt/bash/bash --norc
shopt -s extglob
shopt -s dotglob
cd $(mktemp -d)
mkdir a
touch a/.b
touch a/c
echo a/!(.b)
output:
a/. a/.. a/c
this happens with all bash versions 4.3+ (latest is patch 18).
before that, the out
Chet Ramey writes:
> On 6/9/14, 3:42 PM, Ian Kelling wrote:
> Yes, it's an interesting question: what exactly does pattern negation
> include? You can match all filenames beginning with a `.' by using `.'
> as the first character of the pattern, so should a negated
The pathexp-globignore-delim.patch seems to work as advertised.
> If *a matches scratch/a, for
> example, that's a bug in the matching code I will have to identify and fix.
Yes, this is the case. Based on your reply, the examples I showed are
definitely a bug.
Thank you so much.
-m does not apply to parent directories created with -p
If you wanted to deal with the -p, I would remove it and not pass it to mkdir,
but create them yourself in the function. I'd use parameter expansion to deal
with parts of the path 1 by 1.
- Ian Kelling
;ve got to
track down everything in your invocation files that affects your prompt and
narrow it down to something we can test ourselves.
- Ian Kelling
something else going on in your invocation files. Try making
that the only line in your .bashrc and starting a non-login shell so thats the
only file read.
- Ian Kelling
Jared Yanovich wrote:
Hi, I upgraded to bash 4.0.10 and my PS1 prompt is no longer displaying
anything at all.
I think this was addressed in a recent patch. Try upgrading to the most recent
version.
- Ian Kelling
Chet Ramey wrote:
I cannot reproduce this using bash-4.0.10 or bash-4.0.17 on Mac OS X,
Ubuntu, RHEL 4, or FreeBSD.
Chet
I can't reproduce it either.
- Ian Kelling
Special Sauce wrote:
From: anton
To: bug-bash@gnu.org
Subject: Cursor starts inside prompt
I just noticed this issue too. It seems it was fine under gnu screen, but not
with plain xterm or gnome-terminal. Upgrading to the latest patch version
4.0.17 fixed it.
- Ian Kelling
Chet Ramey wrote:
> Ian Kelling wrote:
>> Special Sauce wrote:
>>> From: anton
>>> To: bug-bash@gnu.org
>>> Subject: Cursor starts inside prompt
>> I just noticed this issue too. It seems it was fine under gnu screen,
>> but not with plain xterm or
Chet Ramey wrote:
Ian Kelling wrote:
Special Sauce wrote:
From: anton
To: bug-bash@gnu.org
Subject: Cursor starts inside prompt
I just noticed this issue too. It seems it was fine under gnu screen,
but not with plain xterm or gnome-terminal. Upgrading to the latest
patch version 4.0.17 fixed
consistent.
- Ian Kelling
shell option 'dotglob' is set and the file is not named '.'
or '..'.
And dotglob's dedicated section has similar wording to change.
I looked at making a patch, but it seems the docs are repeated in
many formats, so I figured I'd just post this first.
--
Ian Kelling
https://iankelling.org
On Tue, Sep 27, 2016, at 09:41 AM, L. A. Walsh wrote:
>
>
> Ian Kelling wrote:
> > The docs currently say:
> >
> > "When a pattern is used for filename expansion, the character '.' at
> > the start of a filename or immediately following a slash
On Tue, Sep 27, 2016, at 11:08 AM, Chet Ramey wrote:
>
> Thanks for the report. There should be something in there about `.'
> and `..' always having to be matched explicitly.
Yw. I noticed another improvement that could be made to the
docs. How do you prefer patches? And, I assume you manually
15 matches
Mail list logo