bug-bash
[Top][All Lists]
Advanced

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

Re: nested "." commands brings Segmentation Fault (core dumped)


From: Benoit Rochefort
Subject: Re: nested "." commands brings Segmentation Fault (core dumped)
Date: Thu, 21 Feb 2002 10:21:55 -0500 (EST)

Chet Ramey writes:
] > 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.
] 

In my sense, it should be trapped otherwise, but you are the maintainer,
so you must have set yourself some kind of limitations.

I send an example to show the behavior and to permit you to reproduce the
problem, not the exact context in which this can happen.

I'm a bash expert, it's easy for me to debug this kind of problem, but for
beginners it's not easy (I often see this kind of recursive scheme when
beginners want to separate their .bashrc in pieces for easier maintenance
and do a little mistake in spelling their file to source of forgot that the
second one was effectivly called at another place) and all they got is
"Segmentation fault"...

But you are the maintainer.

-- 
           *º¤., ¸¸,.¤º*¨¨¨*¤  Benoit Rochefort  *º¤., ¸¸,.¤º*¨¨¨*¤



reply via email to

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