Re: human-friendly ulimit values?

2024-02-21 Thread Christian Convey
On Wed, Feb 21, 2024 at 12:17 PM Andreas Schwab wrote: ... > Or ulimit -v $((8*1024*1024)) > Good point. If a user remembers that "-v" implicitly works in 1024-byte units, that's a good shortcut.

human-friendly ulimit values?

2024-02-21 Thread Christian Convey
When setting memory-size limits via "ulimits", users have to manually convert from their intuitive units. E.g., for limiting virtual memory to 8 gigabytes, the invocation is "ulimit -v 8388608", rather than something like "ulimit -v 8gb". If I were to submit a patch for this, is there any chance

Re: test -v difference between bash 5.1 and 5.2

2023-08-30 Thread Christian Schneider
ty checks on the data passed to the shared code. BR, Christian Am 29.08.23 um 20:19 schrieb Chet Ramey: On 8/29/23 11:56 AM, Kerin Millar wrote: One hopes that the shell programmer knows what variable types he's using, and uses the appropriate constructs. Some elect to source shell co

test -v difference between bash 5.1 and 5.2

2023-08-29 Thread Christian Schneider
you take a look? If it is intended, can you please explain, why this was changed, and if there is an alternative for associative arrays? BR, Christian -- - RADIODATA GmbH Newtonstr. 18 12489 Berlin Germany Homepage:

Building loadables depends on main build

2023-05-07 Thread Christian Weisgerber
) $(MFLAGS) all #newversion: mkversion -- Christian "naddy" Weisgerber na...@mips.inka.de

loadables/finfo: fix time_t printing

2022-12-08 Thread Christian Weisgerber
printf("%ld\n", st->st_ctime); + printf("%lld\n", (long long)st->st_ctime); } else if (flags & OPT_DEV) printf("%lu\n", (unsigned long)st->st_dev); else if (flags & OPT_INO) -- Christian "naddy" Weisgerber na...@mips.inka.de

Fix module loading for OpenBSD

2022-12-08 Thread Christian Weisgerber
loading esac case "$host_cpu" in *cray*)LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it esac case "$host_cpu-$host_os" in -- Christian "naddy" Weisgerber na...@mips.inka.de

Crash when moving full-width glyphs across lines

2019-12-16 Thread Christian Dürr
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin' -DSTANDARD_UTILS_PATH='/usr/bin' -DSYS_BASHRC='/etc/ba

5.0: CPPFLAGS doesn't propagate to loadables

2019-02-12 Thread Christian Weisgerber
$(CPPFLAGS) $(CFLAGS) # # These values are generated for configure by ${topdir}/support/shobj-conf. -- Christian "naddy" Weisgerber na...@mips.inka.de

bash 5.0 ships with very old autoconf macros

2019-02-12 Thread Christian Weisgerber
. (It checks for *.so; OpenBSD only has fully numbered libraries: *.so.0.0, etc.) These macros should be updated to newer versions from a recent release of gettext. -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: examples/loadables/finfo.c type problems

2018-09-09 Thread Christian Weisgerber
2-bit platforms (IA-32, ARMv7) are still around. And BSD has had 64-bit off_t on 32-bit architectures for about a quarter century. -- Christian "naddy" Weisgerber na...@mips.inka.de

5.0alpha: tests/test1.sub is unportable

2018-09-08 Thread Christian Weisgerber
I'm not sure what the new tests/test1.sub in bash 5.0alpha is intended to test, but it fails on OpenBSD because /dev/fd/* are actual character devices there, so test -p /dev/fd/6 will always be unsuccessful. -- Christian "naddy" Weisgerber na...@mips.inka.de

examples/loadables/finfo.c type problems

2018-09-07 Thread Christian Weisgerber
ts in the code, e.g., printf("%ld\n", (long) st->st_size); which potentially truncate values. I don't know if the example loadables are considered to be more than, well, rough examples, so I'm uncertain if this should even be considered a problem. -- Christian "naddy" Weisgerber na...@mips.inka.de

The loadables are built during install

2018-09-07 Thread Christian Weisgerber
uldn't the ".made" target have "loadables" as a prerequisite? -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: Bash patches format

2018-05-30 Thread Christian Weisgerber
my capacity as the OpenBSD packager for bash, either way is fine. We use the upstream patches as provided ("distribution patches"). These are applied with -p0 by default, but it's utterly trivial to specify -p1 if necessary. The choice of context vs. unified diffs is immaterial; pat

Re: glibc [BZ #22145]: {p,ty}fds and mount namespaces

2017-10-10 Thread Christian Brauner
On Tue, Oct 10, 2017 at 5:44 PM, Chet Ramey wrote: > On 10/9/17 10:37 AM, Christian Brauner wrote: > >> A common scenario where this happens is with /dev/console in containers. >> Usually container runtimes/managers will call openpty() on a ptmx device in >> the >

glibc [BZ #22145]: {p,ty}fds and mount namespaces

2017-10-09 Thread Christian Brauner
that makes sense to you it'd be greatly appreciated. Fwiw, zsh does not seem to run into a problem here. Thanks Christian [1]: https://sourceware.org/bugzilla/show_bug.cgi?id=22145

Wrong AC_TRY_COMPILE idiom

2017-09-25 Thread Christian Weisgerber
ash_cv_strtold_broken=no, bash_cv_strtold_broken=yes, [AC_MSG_WARN(cannot check for broken strtold if cross-compiling, defaulting to no)]) ] -- Christian "naddy" Weisgerber na...@mips.inka.de

$$'...' parsing bug?

2017-01-30 Thread Christian Weisgerber
#x27; 86293x\nx $ echo $(echo $'x\nx') x x $ echo $(echo $$'x\nx') x x This is with bash 4.4.12... but a quick check shows the same behavior with 4.2.37. -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: 4.4: crash in redir10 test; use after free?

2016-11-02 Thread Christian Weisgerber
* In process_substitute(), discard_pipeline(last_procsub_child) is called. * discard_pipeline() frees last_procsub_child. * free() is interrupted by a signal. * The signal handler eventually calls find_pipeline(), which accesses the just-freed memory last_procsub_child points to. -- Christian &q

4.4: crash in redir10 test; use after free?

2016-11-01 Thread Christian Weisgerber
-538976289, status = -538976289, running = -538976289, command = 0xdfdfdfdfdfdfdfdf } (gdb) p /x last_procsub_child->pid $3 = 0xdfdfdfdf This looks like a use after free() since OpenBSD's malloc fills some of the freed memory with 0xdf. -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: Magnitude of Order "For Loop" performance deltas based on syntax change

2016-09-24 Thread Christian Franke
mance degradation if arrays are accessed not sequentially. Thanks, Christian

Re: Bash bind bug: infinite loop with memory leak in Readline

2016-09-22 Thread Christian Klomp
2016-09-19 3:41 GMT+02:00 Chet Ramey : > Yes, you've triggered an infinite loop with the key binding. One of the > strengths of macros is that the expansion is not simply a string -- it can > be used as shorthand for a complex key sequence, so simply disallowing > the general case is not really an

Bash bind bug: infinite loop with memory leak in Readline

2016-08-10 Thread Christian Klomp
n infinite loop but in that case accumulation of memory is insignificant. Since I am not known with the internals of Bash/Readline and I am not a C programmer I've refrained myself from digging further. Regards, Christian Klomp # Bash 4.3.46: --- ../bash-4.3/lib/readline/bind.c2013-04-

Unexpected tilde expansion

2016-06-01 Thread Christian
Hello, I have been playing around with tilde expansion lately and I think i have discovered a case where the tilde is expanded where it, according to the documentation, should not. When running: $ x=~ x is set to the current users home directory as expected. $ echo $x /home/christian But

Parse error with consecutive case statements inside $()

2016-03-29 Thread Christian Franke
ected end of file bug.sh: line 7: syntax error near unexpected token `esac' bug.sh: line 7: ` esac' $ dash bug.sh 1 2 Workarounds: - append semicolon behind first 'esac', or - insert any command line between the case statements, or - use `...` instead of $(...) -- Christian Franke

Re: Add -L to kill builtin to be more compatible to procps version of kill

2015-11-09 Thread Christian Ehrhardt
r the former patch for inclusion? On Thu, Oct 1, 2015 at 8:29 PM, Chet Ramey wrote: > On 9/30/15 10:07 AM, Christian Ehrhardt wrote: > > Hi, > > I read and worked on a fix reported to ubuntu regarding this issue. > > https://bugs.launchpad.net/hundredpapercuts/+bug/1488939 >

Add -L to kill builtin to be more compatible to procps version of kill

2015-10-01 Thread Christian Ehrhardt
nd Regards, Christian From: Christian Ehrhardt Fixing some confusion of the bash builtin kill not behaving as the procps kill which one can see in the manpages by adding a -L option mapping to the already existing code behind -l. Signed-off-by: Christian Ehrhardt --- [diffstat] builtins/kill.

Bash does not exit on non-interactive "Bad substitution" errors

2015-08-04 Thread Christian Neukirchen
icular, this also happens when the expansion error occurs in a line consisting of an "exec"-statement, where evaluation usually *never* continues (e.g. bash correctly exits when the command is not found). I think to avoid further damage due to badly set variables, bash should exit in

Re: Help output has bad indentation

2015-01-21 Thread Christian Weisgerber
Christian Weisgerber: > The output of "help " suffers from various indentation problems. PS: I ran *.def through expand(1), which is one way to fix the problem, but this also reveals that some help texts run over the 80-column limit when indented by four characters: mapfil

Help output has bad indentation

2015-01-21 Thread Christian Weisgerber
istory list -sappend the ARGs to the history list as a single entry ... The problem is that the documentation in builtins/*.def is written starting in column 1 and includes tab characters, but the help output is then indented by BASE_INDENT (4) characters. Affects at least 4.2.x, 4.3.x.

Re: Patch file bash42-049 is broken

2014-09-28 Thread Christian Weisgerber
tical line of code missing, but the the 'patch' > command will also fail when used with the --fuzz=0 option -- which is > something that rpmbuild (Fedora, etc) uses. That's GNU patch. OpenBSD's patch just fails with it. -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: y.tab.c inclusion within the source tree

2014-09-28 Thread Christian Weisgerber
stamp ends up being newer than parse.y, Why would this happen? > a patch which (correctly) only patches parse.y, ... will cause parse.y to have a newer timestamp. -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: demonstration of CVE-2014-7186 ShellShock vulnerability

2014-09-27 Thread Jean-Christian de Rivaz
ur test. But bash-4.1.13(1), bash-3.1.19(1), and 2.05b.0(1) with all officials patches fails the same test. Hope that patches will soon be available for all bash versions. Jean-Christian

Re: Bash 2.05b patch for 896776 - (CVE-2014-6271) ?

2014-09-26 Thread Jean-Christian de Rivaz
sticky version string for that old setup. Jean-Christian

Re: Bash 2.05b patch for 896776 - (CVE-2014-6271) ?

2014-09-26 Thread Jean-Christian de Rivaz
Le 26. 09. 14 16:47, Chet Ramey a écrit : On 9/26/14, 4:53 AM, Jean-Christian de Rivaz wrote: Hello, While this can seem completely obsolete, I still have machines running bash 2.05b (Debian etch). I worry about upgrading to bash 3.x because of some backward compatibility issue. It there any

Bash 2.05b patch for 896776 - (CVE-2014-6271) ?

2014-09-26 Thread Jean-Christian de Rivaz
affect this version: j$ bash --version GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu) Copyright (C) 2002 Free Software Foundation, Inc. j$ env x='() { :;}; echo vulnerable' bash -c "echo this is a test" vulnerable this is a test Best Regards, Jean-Christian

Small markup error in bash.1

2012-08-04 Thread Christian Weisgerber
0 -- Christian "naddy" Weisgerber na...@mips.inka.de

Allocating new fds through redirection

2011-07-20 Thread Christian Ullrich
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: freebsd8.1 Compiler: cc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='freebsd8.1' -DCONF_MACHTYPE='i386-portbld-freebsd8.1' -DCONF_VENDOR='portbld' -DLOCALEDIR='/usr/local/share/loc

Re: $() parsing still broken

2009-09-20 Thread Christian Weisgerber
c rather than y.tab.c, so y.tab.c is never regenerated, and the parser fix from patch 001 is effectively not applied. We just need to use YACC="bison -y". -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: $() parsing still broken

2009-09-20 Thread Christian Weisgerber
Chet Ramey: > I suppose the only real variable is the revision of bison: 2.4.1 and 2.3 on my FreeBSD and OpenBSD box, respectively. -- Christian "naddy" Weisgerber na...@mips.inka.de

Re: $() parsing still broken

2009-09-20 Thread Christian Weisgerber
Chet Ramey: > Christian Weisgerber wrote: > > Even in the latest bash, 4.0.33, $() parsing is still broken: > > > > $ bash -c 'echo $(echo \|)' > > bash: -c: line 0: unexpected EOF while looking for matching `)' > > bash: -c: line 1: syntax error:

Re: $() parsing still broken

2009-09-19 Thread Christian Weisgerber
> This has been fixed with patch 1, are you sure you are running the > patched version? Yes, I am. -- Christian "naddy" Weisgerber na...@mips.inka.de

$() parsing still broken

2009-09-18 Thread Christian Weisgerber
Even in the latest bash, 4.0.33, $() parsing is still broken: $ bash -c 'echo $(echo \|)' bash: -c: line 0: unexpected EOF while looking for matching `)' bash: -c: line 1: syntax error: unexpected end of file And yes, this is bash built with GNU bison, not Berkeley yacc. -- C

4.0 patch 25 breaks with gcc 3.3

2009-07-30 Thread Christian Weisgerber
../../include -I../../lib -O2 -pipe glob.c glob.c:1023:69: missing terminating ' character Apparently GCC 3.4 and later versions handle this as intended. [I'm not subscribed to bug-bash.] -- Christian "naddy" Weisgerber na...@mips.inka.de

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

2009-07-20 Thread Christian Krause
#x27;t be compiled properly with bash 4.x) resolved. Thank you very much in advance! Best regards, Christian

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

2009-06-26 Thread Christian Krause
r is correct or not. Please see my comments below: Chet Ramey wrote: > Mike Frysinger wrote: >> On Thursday 25 June 2009 19:17:38 Chet Ramey wrote: >>> Christian Krause wrote: >>>> Bash Version: 4.0 >>>> Patch Level: 16 >>>> Release Status: re

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

2009-06-25 Thread Christian Krause
of environment variables accessible via "set" * the variable is still in the process's environment * the variable will be filtered out when the bash executes a subsequent process This change may also affect other make-based build systems which rely on the fact that a make variable which is exported via the keyword "export" in the Makefile is accessible in nested calls of make. Best regards, Christian

Re: -e does not work inside subscript when using || or && operator outside

2008-08-06 Thread Christian Jaeger
that point on I turned off the light that said I should check for duplicates. I don't have the energy for checking the http://www.opengroup.org/onlinepubs/009695399/utilities/set.html link posted in response to one of the earlier reports right now. Maybe later. Thanks anyway- Christian.

-e does not work inside subscript when using || or && operator outside

2008-08-06 Thread Christian Jaeger
(This is a resend because the gnu.org ml server didn't accept the sender email address that was given by my mailing setup; the first attempt has also been sent to [EMAIL PROTECTED]) Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Comp

Re: Home key doesn't work on properly on prompts with ANSI escapes

2007-10-29 Thread Christian Schubert
Sorry for not reading the documentation ... it just used to work and I didn't expect it to break :) Thanks for clarifying things. Regards, Christian On Monday 29 October 2007 18:26:06 Bob Proulx wrote: > Christian Schubert wrote: > > PS1='\e[32m$\e[m' > > N

Home key doesn't work on properly on prompts with ANSI escapes

2007-10-29 Thread Christian Schubert
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/lo

INIT: Id "s0" respawning too fast: disabled for 5 minutes

2007-09-12 Thread Christian Boon
Hi, i updated bash-3.2 to patch level 25 and i get the following error: INIT: Entering runlevel: 1 INIT: Id "s0" respawning too fast: disabled for 5 minutes INIT: no more processes left in this runlevel my inittab entry is: s0:123:respawn:/sbin/getty -L -n -l /bin/bash ttyS0 115200 linux gett

Re: problems cross-compling bash-3.2

2007-08-29 Thread Christian Boon
Chet Ramey wrote: Christian Boon wrote: This is from aclocal.m4: AC_DEFUN(BASH_SYS_JOB_CONTROL_MISSING, [AC_REQUIRE([BASH_SYS_SIGNAL_VINTAGE]) AC_MSG_CHECKING(for presence of necessary job control definitions) AC_CACHE_VAL(bash_cv_job_control_missing, [AC_TRY_RUN([ #include #ifdef

Re: problems cross-compling bash-3.2

2007-08-28 Thread Christian Boon
Christian Boon wrote: Chet Ramey wrote: Christian Boon wrote: Hello, i want to cross compile bash-3.2 for my pxa255 arm processor and its working although i can't get job control working. It tells you it won't be able to: checking for presence of necessary job control d

Re: problems cross-compling bash-3.2

2007-08-27 Thread Christian Boon
Chet Ramey wrote: Christian Boon wrote: Hello, i want to cross compile bash-3.2 for my pxa255 arm processor and its working although i can't get job control working. It tells you it won't be able to: checking for presence of necessary job control definitions...

Re: problems cross-compling bash-3.2

2007-08-27 Thread Christian Boon
Chet Ramey wrote: cross-compiling bash is known to be broken as it'll mix your host signal defs into the target binary This is no longer true; bash-3.2 builds the signal list at invocation time rather than compile time when cross-compiling. Chet so what do i need to have job control

Re: problems cross-compling bash-3.2

2007-08-27 Thread Christian Boon
Mike Frysinger wrote: On Monday 27 August 2007, Christian Boon wrote: i want to cross compile bash-3.2 for my pxa255 arm processor and its working although i can't get job control working. cross-compiling bash is known to be broken as it'll mix your host signal defs into

problems cross-compling bash-3.2

2007-08-27 Thread Christian Boon
Hello, i want to cross compile bash-3.2 for my pxa255 arm processor and its working although i can't get job control working. i configure bash with: bash-3.2]$ ./configure --host=arm-xscale-linux-gnueabi --without-bash-malloc --enable-job-control in the output i see: checking if opendir(

Re: bash 3.2 fails to detect bzero in configure stage

2007-08-08 Thread Hans-Christian Egtvedt
On Wed, 2007-08-08 at 10:39 +0200, Hans-Christian Egtvedt wrote: > I am using uClibc 0.9.29 and GCC 4.1.2 to compile bash 3.2 (with the 17 > patches released on web). And I have a problem that configure does not > detect bzero properly, and thus resulting in a crash later when > compil

bash 3.2 fails to detect bzero in configure stage

2007-08-08 Thread Hans-Christian Egtvedt
to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_bzero || defined __stub___bzero | choke me | #endif | | int | main () | { | return bzero (); | ; | return 0; | } configure:12901: result: no

3.2: po/ru.po encoding error

2006-10-14 Thread Christian Weisgerber
bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" -- Christian "naddy" Weisgerber [EMAIL PROTECTED] ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

Bash completion buggy if -o nospace, -o filenames and -W used together.

2005-08-18 Thread Christian Boltz
t;-- manually removed the backslash, dir1/ dir2/ --foo= # now it works :-) It would be nice if you could fix that problem ;-) Regards, Christian Boltz -- 2.-5.9.2005: Weinfest in Insheim Bei der Landjugend: Liquid, AH-Band und Deafen Goblins Mehr Infos: www.Landjugend-Insheim.de __