Re: bash randomly logs out on VT / serial console

2017-01-03 Thread Dmitry V. Levin
Hi, On Mon, Jan 02, 2017 at 11:33:16PM +, Russell King wrote: [...] > 17:38:39.478119 ioctl(255, SNDRV_TIMER_IOCTL_SELECT or TIOCSPGRP, [10928]) = 0 > 17:38:39.478250 rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0 > 17:38:39.478395 ioctl(255, SNDCTL_TMR_TIMEBASE or > SNDRV_TIMER_IOCTL_NEXT_

Re: ulimit bug

2011-03-05 Thread Dmitry V. Levin
Hi, On Sat, Mar 05, 2011 at 03:36:39PM +0300, Sergey Zhumatiy wrote: > Hello! > > I just had discover (on my back) ulimit command bug. > There is "resident set" limit, which is set in PAGES. But ulimit > command shows it as kBytes. On by system page size size is 4Kb, so > difference is fo

Re: vzctl enter hangs

2011-03-05 Thread Dmitry V. Levin
On Fri, Mar 04, 2011 at 08:59:30AM +0100, Henk van de Kamer wrote: > > That says nothing about what the child process does. > > Correct, but that is as far as I get with my knowledge :-). Please enlighten yourself as on how to trace child processes, by reading strace(1) manual page. -- ldv p

Q: bash: trap in subshell

2008-04-24 Thread Dmitry V. Levin
Hi, I wonder whether such difference in "trap" behavior is valid: $ sh -c 'f() { echo f; }; t() { trap f EXIT; trap; }; t' trap -- 'f' EXIT f $ sh -c 'f() { echo f; }; t() { trap f EXIT; trap; }; t&' trap -- 'f' EXIT $ sh -c 'f() { echo f; }; t() { trap f EXIT; trap; }; (t)&' trap -- 'f' EXIT f

Re: Q: bash parameter expansion

2008-04-21 Thread Dmitry V. Levin
On Mon, Apr 21, 2008 at 10:06:10AM +0200, Andreas Schwab wrote: > Dmitry V. Levin writes: > > > I wonder whether such difference in parameter expansion is valid: > > > > $ env -i sh -c 'fun() { echo "[${*#foo }]"; }; fun foo bar' > > [foo bar] >

Q: bash parameter expansion

2008-04-20 Thread Dmitry V. Levin
Hi, I wonder whether such difference in parameter expansion is valid: $ env -i sh -c 'fun() { echo "[${*#foo }]"; }; fun foo bar' [foo bar] $ env -i sh -c 'fun() { echo "[${*#foo}]"; }; fun foo bar' [ bar] $ sh --version GNU bash, version 3.2.33(1)-release (x86_64-alt-linux-gnu) Copyright (C) 200

Re: ru.po in bash 3.2 p1

2006-10-21 Thread Dmitry V. Levin
On Sat, Oct 21, 2006 at 11:42:48AM -0400, Chet Ramey wrote: > Marius Schamschula wrote: > > Chet, > > > > I have built bash 3.2 patchlevel 1 under Mac OS X 10.4.8 (both PPC and > > Intel) and I get the following error while installing: > > > > make[2]: [EMAIL PROTECTED]' is up to date. > > rm -f

Re: Segmentation fault

2006-02-19 Thread Dmitry V. Levin
On Sun, Feb 19, 2006 at 09:12:20PM +, Dmitry A. Kharitonov wrote: [...] > Bash Version: 2.05b [...] > [EMAIL PROTECTED] user]$ bash bashbug.sh > 1 > bashbug.sh: line 9: {SPEEDACCUM[block-1]}: syntax error: operand > expected (error token is "{SPEEDACCUM[block-1]}") > Segmentation fault Thank

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

2006-02-04 Thread Dmitry V. Levin
Hi, On Sat, Feb 04, 2006 at 03:27:19PM -0500, Mike Frysinger wrote: > 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 >

bash-3.1.1: unable to feed "trap -p" output into a pipe

2006-01-06 Thread Dmitry V. Levin
Hi, A "trap -p" output doesn't feed into a pipe: $ trap -p $ trap "echo ..." EXIT $ trap -p EXIT

bash-3.1.1: source does not work in conjunction with process substitution

2006-01-06 Thread Dmitry V. Levin
Hi, The "source" builtin does not work in conjunction with process substitution: $ bash -ec 'cat <(echo echo 1)' echo 1