[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
]pushfile hang
From: |
enztec |
Subject: |
]pushfile hang |
Date: |
Sun, 20 Jun 2021 18:13:51 -0600 |
Hi
2 situations i encountered using ]pushfule and a code request :
---
when i use the ]pushfile in a script or in a ws fns or in a file i )copy into
the ws
the next time i do a )copy (on a different file) it hangs until i do a
carriage return but the next )copy still hangs.
the only way to stop the )copy hang is with a ]nextfile or ^C then it returns
to normal until the next ]pushfile
---
and if i )copy on the same file that had the original ]pushfile in it - it
gives the error/warning
error from Workspace.cc around line 749 (and doesn't copy the file)
if i comment the return it allows the )copy (and doesn't seem to cause any harm
and takes care of my immediae need to edit the file and copy it back into the
ws)
Workspace.cc aounr line 749
if (filename == InputFile::files_todo[f].filename) // same filename
{
CERR << "*** )COPY " << filename
<< " would cause recursion (NOT COPIED)" << endl;
// return; <--- commenting allows file to be copied
}
}
code request :
would it be possible to add another/separate ]pusfile_kill cmd (in
addition to ]pushfile) that just ends the script and doesn't have the ability
to need/use a ]nextfile?
so even if there are 5 ]pushfiles in a file - only the first one hit stops the
execution and any more ]nextfile gives the no more file warning
Thank you
- ]pushfile hang,
enztec <=