bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does bash use xmalloc?


From: Andreas Schwab
Subject: Re: Why does bash use xmalloc?
Date: Sun, 06 Nov 2016 12:40:51 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

On Nov 06 2016, Peng Yu <pengyu.ut@gmail.com> wrote:

> My point is why bash terminates when it runs an external command that
> requires a large memory. Shouldn't bash return an exit code on behalf
> of the failed command and continue to the next command?

You have limited the amount of memory the shell itself can use, that has
nothing to do with the command you ran.  There is no way the shell can
continue in this situation, if it cannot allocate any memory at all.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]