> I finally get around to trying this out and (so far) it seems to work. > Thank you!
You're welcome! Opening the group at the end of the first line has the effect of replacing the empty command and its implied p; see sam's man page under `Miscellany'. This also explains why your lines, without the grouping, had the desired effect when you executed them one by one yourself, but not when executed from a script. Mark.
