bug-bash
[Top][All Lists]
Advanced

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

Can't source itself?


From: Peter Backlund
Subject: Can't source itself?
Date: Wed, 4 Jul 2001 14:45:11 -0400
User-agent: KNode/0.4

Hi, 

I posted the "Possible source bug?" a few weeks ago, but no one responded. 
Is it expected behaviour to segfault when a script tries to source itself 
in? As in this script, named foo.sh:

#!/bin/bash
. ./foo.sh 

This will segfault upon execution. Infinite recursion should be more 
reasonable, or preferably that it recognices itself and returns an error 
message.



reply via email to

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