Fix branching commands.
authorGlenn L McGrath <bug1@ihug.co.nz>
Sun, 14 Sep 2003 06:01:14 +0000 (06:01 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sun, 14 Sep 2003 06:01:14 +0000 (06:01 -0000)
commitf4523562b615b8b2cfc8bcc7a962b4d0f5cb9168
tree292257e3ebb8632bd292bf8a663c005aa36d1c0b
parent8aac05bfe5ffdbc4c9591d7d5b486c0af0769a7a
Fix branching commands.

If a label isnt specified, jump to end of script, not the last command
in the script.

Print an error and exit if you try and jump to a non-existant label

Works for the following testcase
# cat strings
a
b
c
d
e
f
g
# cat strings | ./busybox sed -n '/d/b;p'
a
b
c
e
f
g
editors/sed.c