Bruno Haible wrote: > Two things are wrong here: ... > 2) The use of "$0". It is meant to denote the test-....sh filename. This > CANNOT > work when single-stepping, because the statements are not contained in a > file > but are executed interactively, one by one.
I don't see how this can cause a problem. The only uses of $0 are in the re-exec code (which appear not to matter when single stepping), and in diagnostics. Besides, I've fixed init.sh not to re-exec when your current shell is adequate. What problem does init.sh's use of $0 cause you?