[PATCH 6/7] programs/cmd: Save and restore file position from BATCH_CONTEXT.