Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2
uname output: Linux … 5.18.16-…-amd64 #1 SMP PREEMPT_DYNAMIC Debian
5.18.16-… (2022-…) x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu
Bash Version: 5.2
Pat
uncomleted
strings from 3. and replace them with the unexpanded forms from 2.
I'm not sure what behaviour I'd expect if the variable contains several
words. Don't care too much for that case, so I'll be happy with any
solution.
Greetings,
Martin von Gagern
signature.asc
Description: OpenPGP digital signature
On 12.08.2011 01:05, Chet Ramey wrote:
> It's eval. Try the attached patch.
Works like a charm. Thanks a lot!
Martin
signature.asc
Description: OpenPGP digital signature
Hi Chet,
thanks for the swift reply!
On 11.08.2011 15:54, Chet Ramey wrote:
> I suspect that you have a completion defined for `ls' and it's running a
> command or process substitution that's causing the mail check. Can you
> run `set -x', then attempt the completion again and post the results?
well, but there
appears to be nothing specific to Gentoo about this. So I'm forwarding
the bug report here.
Greetings,
Martin von Gagern
signature.asc
Description: OpenPGP digital signature
ted in response to a completion. Instead, the only
places where such a check should be performed are in my opinion the
initial prompt after startup and any prompt after a command was actually
executed. Just pressing enter with an empty command line should also do
the check, I think.
Greetings
Chet Ramey wrote:
> In general, if you enable extglob before a function is parsed and leave
> it on when the function is executed, you should be ok.
I'm thinking about this in terms of bash completion functions. Many of
them use extended globs, but they should not force a specific permanent
extglo
Martin von Gagern wrote:
> I've found out that extglobs behave differently in different
> constructs. To avoid syntax errors, the always have to be
> enabled at parse time.
> For comparison constructs like ``[[ $v == a@(a|b|c)c ]]'' this
Greg Wooledge wrote:
> You're using extglobs inside a function, and extglob was enabled
> at the time the function was delcared. The parser parsed them at that
> time, decided that they are extended globs, and therefore that's what
> they are.
Then why don't they work as extended globs if the ext
Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: i686-pc-linux-gnu-gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/local
ce
expansion the world splitting is implicit.
Yes, I know, this as well can be solved using other tools, probably
together with bash arrays. However there will be a huge overhead. On the
other hand, brace expansion is intuitive, quick to write, easy to read,
and gets the job done - if the job doesn
to generate some feedback here. If you think this useful, tell me
about it, and I'll try a bit harder to get this into the offical
sources. If I get no single answer this time as well, I'll probably post
the patch somewhere online, patch my own version of bash, and that's it.
Greetings,
,
Martin von Gagern
P.S.: This is the second time I post this message here.
The first one was via NNTP and it seems like it didn't make it.
Patch by Martin von Gagern <[EMAIL PROTECTED]>
to allow zero-padded numbers in bash brace expansion sequences.
diff -pur bash-3.2/braces.c ba
,
Martin von Gagern
Patch by Martin von Gagern <[EMAIL PROTECTED]>
to allow zero-padded numbers in bash brace expansion sequences.
diff -pur bash-3.2/braces.c bash/braces.c
--- bash-3.2/braces.c 2006-09-09 04:57:17.0 +0200
+++ bash/braces.c 2007-08-29 23:02:02.0 +0200
@@ -61,7
There was an issue reported and hopefully solved at gentoo:
http://bugs.gentoo.org/show_bug.cgi?id=87247
http://www.gentoo.org/cgi-bin/viewcvs.cgi/app-shells/bash/files/bash-3.0-parallel.patch?rev=1.1&content-type=text/vnd.viewcvs-markup
This should probably be fixed upstream as well.
___
15 matches
Mail list logo