Re: [patch] fix building when readline is disabled

2012-04-26 Thread Mike Frysinger
On Tuesday 24 April 2012 15:49:57 Chet Ramey wrote: > On 4/24/12 10:46 AM, Mike Frysinger wrote: > > On Tuesday 24 April 2012 08:23:04 Chet Ramey wrote: > >> On 4/24/12 12:00 AM, Mike Frysinger wrote: > >>>> OK, so you've stripped the local readline copy ou

Re: Severe Bash Bug with Arrays

2012-04-26 Thread Mike Frysinger
On Thursday 26 April 2012 23:47:39 Linda Walsh wrote: > Anything else you wanna tell me NEVER/ALWAYS to do? try ALWAYS being polite. but i guess that'll NEVER happen. oh well, thankfully kmail can auto-mute based on sender. -mike signature.asc Description: This is a digitally signed

Re: Parallelism a la make -j / GNU parallel

2012-05-03 Thread Mike Frysinger
> function JobFinised { > jcnt=$((${jcnt}-1)) : $(( --jcnt )) or a portable version: : $(( jcnt -= 1 )) > while [ $# -gt 0 ] ; do > while [ ${jcnt} -lt ${mjobCnt} ]; do > jcnt=$((${jcnt}+1)) same math suggestion as above -mik

Re: Parallelism a la make -j / GNU parallel

2012-05-04 Thread Mike Frysinger
iltin -- that does what you want? i wish there was a way to use `wait` that didn't block until all the pids returned. maybe a dedicated option, or a shopt to enable this, or a new command. for example, if i launched 10 jobs in the background, i usually want to wait for the first one to exit so i can queue up another one, not wait for all of them. -mike signature.asc Description: This is a digitally signed message part.

Re: Parallelism a la make -j / GNU parallel

2012-05-04 Thread Mike Frysinger
On Friday 04 May 2012 12:44:32 Greg Wooledge wrote: > On Fri, May 04, 2012 at 12:41:03PM -0400, Mike Frysinger wrote: > > i wish there was a way to use `wait` that didn't block until all the pids > > returned. maybe a dedicated option, or a shopt to enable this, or a new &g

Re: Parallelism a la make -j / GNU parallel

2012-05-04 Thread Mike Frysinger
On Friday 04 May 2012 13:46:32 Andreas Schwab wrote: > Mike Frysinger writes: > > i wish there was a way to use `wait` that didn't block until all the pids > > returned. maybe a dedicated option, or a shopt to enable this, or a new > > command. > > > > for

Re: Parallelism a la make -j / GNU parallel

2012-05-04 Thread Mike Frysinger
On Friday 04 May 2012 15:02:27 John Kearney wrote: > Am 04.05.2012 20:53, schrieb Mike Frysinger: > > On Friday 04 May 2012 13:46:32 Andreas Schwab wrote: > >> Mike Frysinger writes: > >>> i wish there was a way to use `wait` that didn't block until all the >

Re: Parallelism a la make -j / GNU parallel

2012-05-04 Thread Mike Frysinger
On Friday 04 May 2012 16:17:02 Chet Ramey wrote: > On 5/4/12 2:53 PM, Mike Frysinger wrote: > > it might be a little racy (wrt checking cnt >= 10 and then doing a wait), > > but this is good enough for some things. it does lose visibility into > > which pids are live v

Re: Parallelism a la make -j / GNU parallel

2012-05-04 Thread Mike Frysinger
On Friday 04 May 2012 15:25:25 John Kearney wrote: > Am 04.05.2012 21:13, schrieb Mike Frysinger: > > On Friday 04 May 2012 15:02:27 John Kearney wrote: > >> Am 04.05.2012 20:53, schrieb Mike Frysinger: > >>> On Friday 04 May 2012 13:46:32 Andreas Schwab wrote:

Re: Parallelism a la make -j / GNU parallel

2012-05-05 Thread Mike Frysinger
On Saturday 05 May 2012 04:28:50 John Kearney wrote: > Am 05.05.2012 06:35, schrieb Mike Frysinger: > > On Friday 04 May 2012 15:25:25 John Kearney wrote: > >> Am 04.05.2012 21:13, schrieb Mike Frysinger: > >>> On Friday 04 May 2012 15:02:27 John Kearney wrote: >

Re: Parallelism a la make -j / GNU parallel

2012-05-05 Thread Mike Frysinger
On Saturday 05 May 2012 23:25:26 John Kearney wrote: > Am 05.05.2012 06:28, schrieb Mike Frysinger: > > On Friday 04 May 2012 16:17:02 Chet Ramey wrote: > >> On 5/4/12 2:53 PM, Mike Frysinger wrote: > >>> it might be a little racy (wrt checking cnt >= 10 and then

Re: Parallelism a la make -j / GNU parallel

2012-05-06 Thread Mike Frysinger
On Sunday 06 May 2012 03:25:27 John Kearney wrote: > Am 06.05.2012 08:28, schrieb Mike Frysinger: > > On Saturday 05 May 2012 23:25:26 John Kearney wrote: > >> Am 05.05.2012 06:28, schrieb Mike Frysinger: > >>> On Friday 04 May 2012 16:17:02 Chet Ramey wrote:

Re: Parallelism a la make -j / GNU parallel

2012-05-11 Thread Mike Frysinger
On Monday 07 May 2012 09:08:33 Chet Ramey wrote: > On 5/5/12 12:28 AM, Mike Frysinger wrote: > > On Friday 04 May 2012 16:17:02 Chet Ramey wrote: > >> On 5/4/12 2:53 PM, Mike Frysinger wrote: > >>> it might be a little racy (wrt checking cnt >= 10 and then doin

bash crashes when forking jobs and dynamically switching posix mode

2012-05-11 Thread Mike Frysinger
0x42bb5f] /bin/bash(execute_command+0x4e)[0x42ee2e] /bin/bash(reader_loop+0x8c)[0x418fcc] /bin/bash(main+0xdb9)[0x417919] /lib64/libc.so.6(__libc_start_main+0xed)[0x7fe20e84a3ed] /bin/bash[0x4181dd] -mike signature.asc Description: This is a digitally signed message part.

Re: bash crashes when forking jobs and dynamically switching posix mode

2012-05-11 Thread Mike Frysinger
On Friday 11 May 2012 13:37:58 Chet Ramey wrote: > On 5/11/12 11:43 AM, Mike Frysinger wrote: > > in light of the recent discussion, i thought i could switch posix mode > > on/off on the fly so that i restricted myself to this mode only when > > using `wait`. > > u

Re: bash crashes when forking jobs and dynamically switching posix mode

2012-05-11 Thread Mike Frysinger
On Friday 11 May 2012 14:25:08 Chet Ramey wrote: > On 5/11/12 11:43 AM, Mike Frysinger wrote: > > in light of the recent discussion, i thought i could switch posix mode > > on/off on the fly so that i restricted myself to this mode only when > > using `wait`. > > >

Re: Shell comment ignored

2012-08-16 Thread Mike Frysinger
es confusing to people) behavior. you need to have some byte in there that breaks up the tokens -- be it a tab, space, or newline. -mike signature.asc Description: This is a digitally signed message part.

Re: bash 4.x filters out environmental variables containing a dot in the name

2012-08-21 Thread Mike Frysinger
On Tuesday 21 August 2012 07:45:49 Ondrej Oprala wrote: > unless this bug is already fixed in some way yes, please retest with very latest bash-4.2 and the released patchsets -mike signature.asc Description: This is a digitally signed message part.

BASH_COMMAND is incorrect when working with subshells and error traps

2012-08-22 Thread Mike Frysinger
consider this simple code: $ cat test.sh #!/bin/bash trap 'echo $BASH_COMMAND; exit 1' ERR set -e true (false) true when run, we see: $ ./test.sh true 1 this can be confusing when utilized with automatic backtraces :( even when using errtrace and debugtrace, BASH_COMMAND is incor

Re: BASH_COMMAND is incorrect when working with subshells and error traps

2012-08-22 Thread Mike Frysinger
On Wednesday 22 August 2012 12:30:11 Mike Frysinger wrote: > consider this simple code: > > $ cat test.sh > #!/bin/bash > trap 'echo $BASH_COMMAND; exit 1' ERR > set -e > true > (false) > true > > when run, we see: > $ ./test.sh > true 1 err,

[PATCH] bash: speed up `read -N`

2012-11-19 Thread Mike Frysinger
Rather than using 1 byte reads, use the existing cache read logic. This could be sped up more, but this change is not as invasive and should (hopefully) be fairly safe. Signed-off-by: Mike Frysinger --- builtins/read.def | 21 - externs.h | 1 + lib/sh/zread.c

Re: No such file or directory

2013-01-01 Thread Mike Frysinger
. it's the ldso missing. if a lib was missing, the ldso would spit out a useful message telling you exactly which lib could not be found. at least, that's the standard Linux (glibc/uclibc/etc...) behavior. $ ./a.out: error while loading shared libraries: libfoo.so: cannot open shared object file: No such file or directory -mike signature.asc Description: This is a digitally signed message part.

Re: No such file or directory

2013-01-02 Thread Mike Frysinger
> found."? > > > > Because that's what strerror() in your libc reports. It's not bash's > > fault if libc produces a shorter message (correct in the common case) > > than what the man pages says is possible in the more comprehensive case. > > I

Re: No such file or directory

2013-01-02 Thread Mike Frysinger
On Wednesday 02 January 2013 07:07:49 Roman Rakus wrote: > On 01/02/2013 02:25 AM, Mike Frysinger wrote: > > On Tuesday 01 January 2013 15:10:00 Chet Ramey wrote: > >> On 1/1/13 2:49 PM, Aharon Robbins wrote: > >>> Michael Williamson wrote: > >>>> I h

interrupted system call when using named pipes on FreeBSD

2013-01-17 Thread Mike Frysinger
this is the route to take ? seems like if bash is handling SIGCHLD, there's no avoiding this sort of check. -mike signature.asc Description: This is a digitally signed message part.

Re: [PATCH] bash: speed up `read -N`

2013-01-17 Thread Mike Frysinger
On Monday 19 November 2012 19:46:17 Mike Frysinger wrote: > Rather than using 1 byte reads, use the existing cache read logic. > This could be sped up more, but this change is not as invasive and > should (hopefully) be fairly safe. ping ... -mike signature.asc Description: This is a

Re: [PATCH] bash: speed up `read -N`

2013-01-18 Thread Mike Frysinger
On Friday 18 January 2013 07:49:22 Chet Ramey wrote: > On 1/18/13 1:31 AM, Mike Frysinger wrote: > > On Monday 19 November 2012 19:46:17 Mike Frysinger wrote: > >> Rather than using 1 byte reads, use the existing cache read logic. > >> This could be sped up more, but thi

Re: interrupted system call when using named pipes on FreeBSD

2013-01-18 Thread Mike Frysinger
On Friday 18 January 2013 07:55:00 Chet Ramey wrote: > On 1/18/13 1:30 AM, Mike Frysinger wrote: > > this is somewhat a continuation of this thread: > > http://lists.gnu.org/archive/html/bug-bash/2008-10/msg00091.html > > > > i've gotten more or less the

Re: Q on Bash's self-documented POSIX compliance...

2013-01-27 Thread Mike Frysinger
normally a better gauge of how portable your script is, than > > bash in posix mode. > > It is, but it still has a couple of extensions over the standard right. and there's optional parts of the standard that some shells implement and others omit. > As for the rationale, making it strictly compatible in order to test > scripts probably requires quite some more work and I bet Chet would > not be against a --lint option or something like that but it may not > be his primary objective. some tool to analyze would be nice -mike signature.asc Description: This is a digitally signed message part.

[PATCH 2/2] use AC_CHECK_TOOL with `ar` rather than AC_CHECK_PROG

2013-01-31 Thread Mike Frysinger
The TOOL variant will automatically search for a $host prefixed program (e.g. x86_64-pc-linux-gnu) rather than looking for `ar` only. This is useful when cross-compiling and it matches the behavior of the other tools that configure relies on (e.g. cc & ranlib). Signed-off-by: Mike Frysi

[PATCH 1/2] drop -i file

2013-01-31 Thread Mike Frysinger
Guessing it was added by accident while testing. Signed-off-by: Mike Frysinger --- -i | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 -i diff --git a/-i b/-i deleted file mode 100644 index e69de29..000 -- 1.8.0.2

random crashes when read interrupted by signal & clean up modifies terminal

2013-02-08 Thread Mike Frysinger
tput rmcup exit 0 } trap cleanup SIGINT while ! read -t0.01 -n1; do : ; done run it in a loop like so: $ while ./test.sh ; do :; done then hold down ctrl+c. eventually it'll crash. [1] https://455990.bugs.gentoo.org/attachment.cgi?id=338214 -mike signature.asc Description: This is a digitally signed message part.

Re: random crashes when read interrupted by signal & clean up modifies terminal

2013-02-08 Thread Mike Frysinger
n times does not return automatically. it's as if the -t option were not specified. -mike signature.asc Description: This is a digitally signed message part.

Re: autoconf 2.69?

2013-03-27 Thread Mike Frysinger
On Wednesday 27 March 2013 11:44:32 Roman Rakus wrote: > Support for the ARM 64 bit CPU architecture (aarch64) was introduced in > autoconf 2.69. bash uses an earlier version of > autoconf, preventing its being built. are you talking about config.{sub,guess}, or something els

Re: autoconf 2.69?

2013-03-27 Thread Mike Frysinger
On Wednesday 27 March 2013 14:02:57 Chet Ramey wrote: > On 3/27/13 1:07 PM, Mike Frysinger wrote: > > On Wednesday 27 March 2013 11:44:32 Roman Rakus wrote: > >> Support for the ARM 64 bit CPU architecture (aarch64) was introduced in > >> autoconf 2.69. bash

Re: Local variables overriding global constants

2013-04-03 Thread Mike Frysinger
hing possibly important. i'm not interested in debating the "you should be familiar with the code base" as that's not being realistic. large code bases in the open source world, by their nature, accept drive by commits and accidents happen. -mike signature.asc Description: This is a digitally signed message part.

Re: Local variables overriding global constants

2013-04-03 Thread Mike Frysinger
On Wednesday 03 April 2013 21:38:19 Chet Ramey wrote: > On 4/3/13 12:31 PM, Mike Frysinger wrote: > > sounds like the fundamental limitation is that the person writing the > > code can't declare their intentions. after your compromise, they now > > can. if you follow

Re: Local variables overriding global constants

2013-04-04 Thread Mike Frysinger
On Thursday 04 April 2013 10:20:50 Chet Ramey wrote: > On 4/4/13 12:34 AM, Mike Frysinger wrote: > >>> would it be possible to enable a mode where you had to explicitly > >>> `declare +r` the var ? being able to "simply" do `local FOO` allows > >>

`declare -fp` mishandles heredoc with || statement

2013-05-31 Thread Mike Frysinger
simple code snippet: $ cat test.sh func() { cat > / < / < signature.asc Description: This is a digitally signed message part.

Re: `declare -fp` mishandles heredoc with || statement

2013-06-01 Thread Mike Frysinger
On Saturday 01 June 2013 17:07:33 Chet Ramey wrote: > On 5/31/13 10:37 PM, Mike Frysinger wrote: > > simple code snippet: > > $ cat test.sh > > func() { > > cat > / < > 11 > > EOF > > } > > declare -fp > > > > when run, we see the

Re: don't just seek to the next line if the script has been edited

2013-06-10 Thread Mike Frysinger
g, using memory-mapped I/O, the machine might very well start > executing garbage and your C program would dump core or similar. pretty sure the linux kernel (and others?) would return ETXTBSY and not even allow the write -mike signature.asc Description: This is a digitally signed message part.

Re: currently doable? Indirect notation used w/a hash

2013-06-10 Thread Mike Frysinger
-root: $ rm -rf / rm: it is dangerous to operate recursively on `/' rm: use --no-preserve-root to override this failsafe -mike signature.asc Description: This is a digitally signed message part.

Re: currently doable? Indirect notation used w/a hash

2013-06-11 Thread Mike Frysinger
On Tuesday 11 June 2013 03:23:29 Chris Down wrote: > On 11 Jun 2013 02:19, "Mike Frysinger" wrote: > > On Monday 10 June 2013 18:20:44 Chris F.A. Johnson wrote: > > > On Mon, 10 Jun 2013, Linda Walsh wrote: > > > >> Point taken, but the

`printf -v foo ""` does not set foo=

2013-06-16 Thread Mike Frysinger
simple test code: unset foo printf -v foo "" echo ${foo+set} that does not display "set". seems to have been this way since the feature was added in bash-3.1. -mike signature.asc Description: This is a digitally signed message part.

Re: `printf -v foo ""` does not set foo=

2013-06-24 Thread Mike Frysinger
On Monday 24 June 2013 16:13:01 Chet Ramey wrote: > On 6/17/13 1:27 AM, Mike Frysinger wrote: > > simple test code: > > unset foo > > printf -v foo "" > > echo ${foo+set} > > > > that does not display "set". seems to hav

possible bash bug - 'history'

2013-07-19 Thread Mike Fied
7; plus also in 'csh' ( which is a different story and probably does not apply here ) system/version details: GNU bash, version 4.2.10(2)-release (x86_64-pc-linux-gnu) compile flags used: bashlogger, net, nls Gentoo x86_64 E3-1245v2 fix? none ( workaround ) Thank you and have a good weekend, Mike FIedler

Re: bash built-ins `true' and `false' undocumented

2013-09-28 Thread Mike Frysinger
a > need to reiterate absolutely everything that is already required by > POSIX. on a GNU system, coreutils provides `true` and `false` as well as man & info pages. i don't think having bash duplicate things would be useful in any way. -mike signature.asc Description: This is a digitally signed message part.

Re: [PATCH] bash: add socket server support

2013-11-26 Thread Mike Frysinger
in an env variable. adding other features like this doesn't sound like a bad idea at all, but it also doesn't sound like it should preclude a simple & useful extension to existing bash code. -mike signature.asc Description: This is a digitally signed message part.

Re: [PATCH] bash: add socket server support

2013-11-26 Thread Mike Frysinger
s here. we aren't talking about any path that is searched via $PATH, we're talking about a bash-internal pseudo path that is checked explicitly. there is no such /dev/tcp/ path on *nix systems; bash keys off that to do internal network parsing. -mike signature.asc Description: This is a digitally signed message part.

Re: [PATCH] bash: add socket server support

2013-11-26 Thread Mike Frysinger
ature should at least be switchable, or otherwise restricted. it already is via a configure flag: --disable-net-redirections -mike signature.asc Description: This is a digitally signed message part.

Re: Why bash doesn't have bug reporting site?

2014-01-13 Thread Mike Frysinger
one click, provided > there are no conflicts. git has dirt simple integration with e-mail too. -mike signature.asc Description: This is a digitally signed message part.

Re: Bash-4.3-rc2 available for FTP

2014-01-30 Thread Mike Frysinger
atic intmax_t exp2 __P((void)); guess it should be renamed to something else. -mike signature.asc Description: This is a digitally signed message part.

Re: Bash-4.3-rc2 available for FTP

2014-01-30 Thread Mike Frysinger
regex_t preg; int i1 = regcomp(&preg, argv[1], 0); int i2 = regexec(&preg, argv[2], 0, NULL, 0); printf("regcomp(%s) = %i\n" "regexec(%s) = %i\n", argv[1], i1, argv[2], i2); return 0; } $ gcc test.c $ ./a.out '

Re: Bash-4.3-rc2 available for FTP

2014-01-30 Thread Mike Frysinger
On Thursday, January 30, 2014 23:12:18 Andreas Schwab wrote: > Mike Frysinger writes: > > $ ./a.out 'a\-b' a-b > > regcomp(a\-b) = 0 > > The effect of \- in a BRE is undefined. yes, but that's kind of irrelevant for the point raised here. bash's =~ uses

Re: Bash-4.3-rc2 available for FTP

2014-01-30 Thread Mike Frysinger
On Thursday, January 30, 2014 23:53:55 Andreas Schwab wrote: > Mike Frysinger writes: > > yes, but that's kind of irrelevant for the point raised here. bash's =~ > > uses ERE, and passing in REG_EXTENDED to get ERE semantics with regcomp() > > yields the same

Re: pattern substitution expands "~" even in quoted variables

2014-03-08 Thread Mike Frysinger
get same behavior in <=bash-4.2 and >=bash-4.3 by using single quotes: P="foo_bar" MY_P=${P/_/'~'} echo "${MY_P}" -mike signature.asc Description: This is a digitally signed message part.

Re: RFE: a way to echo the arguments with quoting

2014-03-09 Thread Mike Frysinger
#x27; 'a b c ' '\n' > > Sat 14:17:53 ip2 yost /Users/yost > > 0 635 Z% > > > > It would be nice if there were an easy way to do this in bash. > > printf "%q" does that. indeed -- also remember that you need "$@" and not $@ (a

Re: When a hashed pathname is deleted, search PATH

2014-03-18 Thread Mike Frysinger
ke ENOEXEC) and the parent could look for that. alternatively, accept that it's not a real problem in practice for the majority of people as Chet has pointed out ;). -mike signature.asc Description: This is a digitally signed message part.

Re: bash cross with installed readline

2014-03-18 Thread Mike Frysinger
al search for its value. see how autoconf implements its AC_CHECK_SIZEOF macro using only compile tests for the algorithm. -mike signature.asc Description: This is a digitally signed message part.

Re: When a hashed pathname is deleted, search PATH

2014-03-18 Thread Mike Frysinger
On Tue 18 Mar 2014 21:11:07 Linda Walsh wrote: > Mike Frysinger wrote: > > On Tue 18 Mar 2014 01:04:03 Linda Walsh wrote: > >> Chet Ramey wrote: > >>> Because the execution fails in a child process. You'd be able to fix it > >>> for that process,

Re: Special built-ins not persisting assignments

2014-03-25 Thread Mike Frysinger
e bug.) as noted, this is a feature of bash :) POSIX also imposes annoying behavior that bash fixes: unset foo f() { :; } foo=bar f echo $foo POSIX will show bar (ugh) while bash will not (yeah!) -mike signature.asc Description: This is a digitally signed message part.

Re: ls doesn't work in if statements in bash 4.3

2014-03-26 Thread Mike Frysinger
ys the wrong answer. use unadorned globs: for f in dog*; do ... i'd point out that if any of the files in your dir have whitespace, your code would also break: touch 'dog a b c' for f in `ls dog*`; do ... -mike signature.asc Description: This is a digitally signed message part.

easier construction of arrays

2014-03-27 Thread Mike Frysinger
. i wish we had a native option for it. maybe something like: read -A files -r -d '' < <(find . -iname '*.mp3' -print0) perhaps there is another shell out there that implements something that can replace that loop that bash can crib ? -mike signature.asc Description: This is a digitally signed message part.

Re: easier construction of arrays

2014-03-27 Thread Mike Frysinger
On Thu 27 Mar 2014 19:15:13 Pierre Gaston wrote: > On Thu, Mar 27, 2014 at 5:53 PM, Mike Frysinger wrote: > > On Thu 27 Mar 2014 08:01:45 Greg Wooledge wrote: > > > files=() > > > while IFS= read -r -d '' file; do > > > > > > file

Re: ls doesn't work in if statements in bash 4.3

2014-03-27 Thread Mike Frysinger
On Fri 28 Mar 2014 10:23:17 Chris Down wrote: there's really nothing to add to Chris's wonderful post :) -mike signature.asc Description: This is a digitally signed message part.

Re: Interactive Expect from bash Script

2014-03-28 Thread Mike Frysinger
urceforge.net/ if you're still set on this amalgamation, then might i suggest looking into the expect-lite package ? http://expect-lite.sourceforge.net/ -mike signature.asc Description: This is a digitally signed message part.

Re: bug? "type -P xxx" returns "xxx" that isn't executable...(or readable)

2014-08-01 Thread Mike Frysinger
ll attempt to execute. > > --- > It's not in the hash table, but type -P still > returns the non-executable. read what Chet said. type -P reflects what the shell will attempt, not what is useful. the fact that it's not usable is irrelevant. if you want to see if i

Re: Tilde expansion during command search

2014-08-01 Thread Mike Frysinger
ee any reason to change it now. > > The only concerns I can think of are inconsistency with programs that use > execvp(), or possibly double-expansion in the event of a user name or any > path containing ~. how so ? execvp doesn't do tilde expansion. only the shell does, and it does it once at assignment. -mike signature.asc Description: This is a digitally signed message part.

Re: Potential vulnerabilities in BASH 4.3

2014-08-11 Thread Mike Frysinger
ffffff601000 r-xp 00:00 0 [vsyscall] Aborted (core dumped) -mike signature.asc Description: This is a digitally signed message part.

change in behavior starting with bash-4.3_p14 and $@ in [[...]]

2014-08-12 Thread Mike Frysinger
simple enough code: foo=(0 0 0); [[ -z ${foo[@]#0} ]]; echo $? with bash-4.3_p13 and older, this would show 0. starting with bash-4.3_p14, this now shows 1. i can't tell from the thread whether this was intentional: https://lists.gnu.org/archive/html/help-bash/2014-04/msg4.html

missing docs for new ulimit options in bash-3.1

2005-12-10 Thread Mike Frysinger
any reason to not include the -e (scheduling priority) and -r (rt priority) options that Fedora has been using ? -mike Ripped from Fedora Add support for RLIMIT_NICE/RLIMIT_RTPRIO and add missing documentation for many other options --- builtins/ulimit.def +++ builtins/ulimit.def @@ -34,18 +

unable to declare multiple empty arrays on one line in bash-3.1

2005-12-11 Thread Mike Frysinger
near unexpected token `(' however, this works: func() { local -a foo=() ; local -a bar=() ; } tested current Gentoo ebuild and vanilla tarball, both go boom -mike ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

segfault in readline-5.1 in rl_callback_read_char()

2005-12-12 Thread Mike Frysinger
(RL_STATE_ISEARCH)) +if (RL_ISSTATE (RL_STATE_ISEARCH) && _rl_iscxt) ... -else if (RL_ISSTATE (RL_STATE_NSEARCH)) +else if (RL_ISSTATE (RL_STATE_NSEARCH) && _rl_nscxt) ... -else if (RL_ISSTATE (RL_STATE_NUMERICARG)) +else if (RL_ISSTATE (RL_STATE_NUMERICARG) && _rl_argcxt) -mike

[patch] cleanup some warnings in readline-5.1

2005-12-12 Thread Mike Frysinger
find attached a patch which: - fixes misc warnings about unused variables - missing xmalloc() prototype in callback.c - fix warning misc.c:rl_digit_loop() about missing a return ... not sure if 0 is the correct default return value though -mike --- readline-5.1.orig/bind.c2005-10-14 11

Re: unable to declare multiple empty arrays on one line in bash-3.1

2005-12-12 Thread Mike Frysinger
On Sunday 11 December 2005 20:59, Mike Frysinger wrote: > Description: > attempting to declare multiple local empty arrays fails with bash-3.1. probably related, this syntax fails too: $ eval foo=( "bar" ) bash: syntax error near unexpected

Re: bash-3.1 build feedback

2005-12-12 Thread Mike Frysinger
he binutils you are using is older which is why binutils segfaulted ... it should be fixed in newer versions to error out gracely when attempting to combine 32 and 64 bit objects incorrectly someone just mentioned in on this list actually which is why i signed up :) -mike _

Re: Callback interface broken

2005-12-13 Thread Mike Frysinger
ter than the one i posted earlier :) http://lists.gnu.org/archive/html/bug-bash/2005-12/msg00033.html -mike ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

Re: let expression parsing broken in bash 3.1

2005-12-13 Thread Mike Frysinger
most assignments that involve () these fail too: a=() b=() eval foo=() -mike ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

Re: bash-3.1 build feedback

2005-12-14 Thread Mike Frysinger
On Wed, Dec 14, 2005 at 08:40:30AM -0500, Chet Ramey wrote: > Mike Frysinger wrote: > > > this is the same thing as cross-compiling which doesnt work correctly > > when it comes to generating the signal lists ... the binutils you are > > using is older which is why bi

Re: bash link fails on AIX

2005-12-21 Thread Mike Frysinger
://lists.gnu.org/archive/html/bug-bash/2005-12/msg00051.html -mike ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

bash-3.1.1 parses arrays slightly incorrectly (was: Bash-3.1 patch 1)

2005-12-23 Thread Mike Frysinger
quot;127.0.0.1/8 brd 127.255.255.255" with bash-3.1 though, we get no output at all ... changing expand_parameters() slightly is one workaround: -local -a a=( ${x} ) +local -a a ; a=( ${x} ) -mike ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

Re: bash-3.1.1 parses arrays slightly incorrectly

2005-12-24 Thread Mike Frysinger
On Saturday 24 December 2005 13:27, Chet Ramey wrote: > Mike Frysinger wrote: > > On Thu, Dec 22, 2005 at 09:24:06AM -0500, Chet Ramey wrote: > >> Bash-Release: 3.1 > >> Patch-ID: bash31-001 > >> > >> Bug-Description: > >> > >>

Single quotes are lost from v="$(cmd $'A\tB')"

2006-01-09 Thread mike . stroyan
+++ bash/parse.y2006-01-07 16:12:40.0 -0700 @@ -2906,8 +2906,8 @@ { if (open == ch) /* undo previous increment */ count--; - if (ch == '(')/* ) */ - nestret = parse_matched_pair (0, '(', ')'

Re: bash -c error

2006-01-10 Thread Mike Frysinger
On Monday 09 January 2006 11:25, U-DULI2Krzysiek wrote: > Bash Version: 3.0 > Patch Level: 16 > Release Status: release > > Description: > bash -c time stackdumps. Not Cygwin specific. bash-3.0 crashes but bash-3.1 does not -mike __

off by one in wrapping long lines in bash-3.1

2006-01-12 Thread Mike Frysinger
7; - hold down a letter until it gets to the edge of the terminal - observe the line wrapping too soon and overwriting current line - hit enter/resize terminal/etc... - hold down a letter until it gets to the edge of the terminal - observe the line wrapping properly now -mike

Re: off by one in wrapping long lines in bash-3.1

2006-01-12 Thread Mike Frysinger
nd he was able to reproduce the bad behavior (he uses gnome-terminal) ... not quite sure where to take this next as ive never poked around readline or bash before and terminals scare me :) -mike ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

Re: off by one in wrapping long lines in bash-3.1

2006-01-13 Thread Mike Frysinger
ASCII satisfies my needs :) -mike ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

Re: off by one in wrapping long lines in bash-3.1

2006-01-13 Thread Mike Frysinger
On Friday 13 January 2006 22:02, Mike Frysinger wrote: > On Friday 13 January 2006 21:16, Chet Ramey wrote: > > Someone who can reproduce this is going to have to gdb bash, attach to > > the shell producing the bad behavior, and find out what _rl_screenwidth > > and _rl_ter

Re: [patch] fix 'exec -l /bin/bash'

2006-01-15 Thread Mike Frysinger
On Friday 13 January 2006 12:11, Tim Waugh wrote: > Description: > If bash has argv[0] as '-/bin/bash' it does not become a login > shell. > > Repeat-By: > exec -l /bin/bash > shopt > > Fix: patch works for me usin

Re: [bash 3.1.5] sh -c "echo -n ok" broken

2006-01-18 Thread Mike Frysinger
On Wednesday 18 January 2006 18:34, Jeff Chua wrote: > GNU bash, version 3.1.5(1)-release > > sh -c "echo -n ok" returns "-n ok". works correctly for me: [EMAIL PROTECTED] 0 ~ $ sh -c "echo -n ok" [EMAIL PROTECTED] 0 ~ $ -mike _

error with `typeset -f some-func` in non-POSIX mode: bug or feature ?

2006-01-26 Thread Mike Frysinger
-func bash: typeset: `some-func': not a valid identifier in other words, everything ive shown here is expected behavior except for the very last 'typeset -f some-func' line ... this is with bash-3.1_p5, but tested bash-3.0_p16 and got the sam

Re: incorrect brace expansion

2006-01-29 Thread Mike Frysinger
't bash behave like csh? Which bash does do at this time. > > csh -c 'echo a-{b{d,e}}-c' > a-bd-c a-be-c > bash -c 'echo a-{b{d,e}}-c' > a-bd-c a-be-c > > What is the basis for the belief that it should get the other output? b

Re: incorrect brace expansion

2006-01-29 Thread Mike Frysinger
are used, and while the inner braces used commads, the outer braces did not -mike ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

Re: incorrect brace expansion

2006-01-29 Thread Mike Frysinger
On Sunday 29 January 2006 19:23, William Park wrote: > Let's see... > a-{b{d,e}}-c > a-{bd,be}-c i'm pretty sure the commas are consumed in the expansion side note, this also fails: $ echo {a}{b,c} {a}{b,c} -mike ___ Bug-ba

Re: incorrect brace expansion

2006-01-29 Thread Mike Frysinger
a-bd-c a-be-c > > > > > >It looks okey, I think. > > > > Except that b{d,e} expands to 'bd be', not 'bd,be'. > > Hmm... no. Internally, arguing for what goes on internally shouldnt have bearing on what the user result is ... and in this case, th

add support for ${array[#]} syntax ?

2006-02-02 Thread Mike Frysinger
${array[#]} isnt supported as well as [EMAIL PROTECTED] ? -mike ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

make 'tr' (or something like it) a bash builtin ?

2006-02-02 Thread Mike Frysinger
h builtin, then that'd work with some `echo | tr` magic, but it something like ${foo//[[:lower:]]/[[:upper:]]} would be nice -mike ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

prompt with \[ \] corrupted by vi history search

2006-02-03 Thread Mike Stroyan
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKA

support /etc/inputrc as a system-wide fallback default ?

2006-02-04 Thread Mike Frysinger
we've been using a patch in Gentoo for sometime which adds support for /etc/inputrc as a fallback after $INPUTRC and ~/.inputrc ... i couldnt seem to find anything in the archives where someone proposed this be added to readline, but maybe i just missed it ?

Re: support /etc/inputrc as a system-wide fallback default ?

2006-02-04 Thread Mike Frysinger
nputrc 4. /etc/inputrc which makes more sense to me ... if you want your ~/.inputrc to also use the /etc/inputrc, then you should use an include directive yourself in ~/.inputrc rather than it always being forced ... -mike ___ Bug-bash mailin

<    1   2   3   4   5   6   >