[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nested "." commands brings Segmentation Fault (core dumped)
From: |
Paul Jarc |
Subject: |
Re: nested "." commands brings Segmentation Fault (core dumped) |
Date: |
Thu, 21 Feb 2002 11:26:40 -0500 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/20.7 (i386-redhat-linux-gnu) |
Chet Ramey <chet@nike.ins.cwru.edu> wrote:
>> nested "." commands brings Segmentation Fault (core dumped).
>> Probably due to infinite recursion that (in my sense) should be
>> trapped otherwise.
>
> If you're going to insist on shooting yourself in the foot, bash will
> happily supply the ammunition, and, in some cases, even load the gun
> for you.
But it shouldn't shoot itself in the head. Memory allocation errors
should be noticed and reported at allocation time; SIGSEGV seems to
indicate that an allocation is failing but bash doesn't notice until
later when it tries to use the missing memory.
paul