dotgob+extglob bug

2014-06-09 Thread Ian Kelling
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

Re: dot gob+extglob bug

2014-06-19 Thread Ian Kelling
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

Re: dot gob+extglob bug

2014-07-14 Thread Ian Kelling
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.

Re: Creating directories with sticky bit set

2009-03-12 Thread Ian Kelling
-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

Re: Bash 4 cursor in my prompt

2009-04-07 Thread 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

Re: Bash 4 cursor in my prompt

2009-04-07 Thread 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

Re: possible bash 4.0.10 bug: command substitution in PROMPT_COMMAND

2009-04-10 Thread 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

Re: possible bash 4.0.10 bug: command substitution in PROMPT_COMMAND

2009-04-10 Thread 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

Re: Bash 4 cursor in my prompt

2009-04-24 Thread 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

Re: Bash 4 cursor in my prompt

2009-04-25 Thread 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

Re: Bash 4 cursor in my prompt

2009-04-25 Thread 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 gnome-terminal. Upgrading to the latest patch version 4.0.17 fixed

Re: declare a=( {1..10} )

2009-07-09 Thread Ian Kelling
consistent. - Ian Kelling

doc improvement for dotglob

2016-09-27 Thread 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

Re: doc improvement for dotglob

2016-09-27 Thread Ian Kelling
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

Re: doc improvement for dotglob

2016-09-27 Thread Ian Kelling
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