Previous Thread
Next Thread
Print Thread
copy.lit question #37771 14 Jan 25 01:23 PM
Joined: Jun 2001
Posts: 430
V
Valli Information Systems Online Content OP
Member
OP Online Content
Member
V
Joined: Jun 2001
Posts: 430
is there a switch for copy so it will not try to copy directories in a ppn?


ie

i use copy dsk7:[]=dsk4:[]*.*

and if any ppn has a directory in it, copy tries (but fails after awhile) to copy it?

this is almalinux, ashell 7.0.1764.1

thanks

Re: copy.lit question [Re: Valli Information Systems] #37772 14 Jan 25 01:34 PM
Joined: Jun 2001
Posts: 11,925
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,925
Sounds like a deficiency in COPY.LIT. (On the one hand, it's not expecting directories within PPNs and so probably isn't checking the directory entry type. But on the other hand, it doesn't make sense to try to recurse in that way when we're using AMOS-style syntax. I'll take a close look at the code this afternoon and see if it can be easily updated to avoid the problem.

Re: copy.lit question [Re: Valli Information Systems] #37773 14 Jan 25 01:41 PM
Joined: Jun 2001
Posts: 430
V
Valli Information Systems Online Content OP
Member
OP Online Content
Member
V
Joined: Jun 2001
Posts: 430
thanks, also while you are looking could you take a quick glance about the 'stop' command and its behavior when encountered by a program running in the task manager. i thought it used to just bypass it and continue on, but i've noticed lately that it actually is aborting the running job

thanks

Re: copy.lit question [Re: Valli Information Systems] #37774 14 Jan 25 03:05 PM
Joined: Jun 2001
Posts: 11,925
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,925
Ok try this version... (note that COPY.LIT and MOVE.LIT are identical but act differently based on their names)...

COPY.LIT 3.4(148)
MOVE.LIT 3.4(148)

I'll have to look into the STOP issue separately.

Re: copy.lit question [Re: Valli Information Systems] #37777 14 Jan 25 05:42 PM
Joined: Jun 2001
Posts: 430
V
Valli Information Systems Online Content OP
Member
OP Online Content
Member
V
Joined: Jun 2001
Posts: 430
thanks, that really helps

Re: copy.lit question [Re: Valli Information Systems] #37779 14 Jan 25 07:11 PM
Joined: Jun 2001
Posts: 11,925
J
Jack McGregor Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 11,925
I wasn't able to reproduce the STOP problem with SUBMIT, at least in the current version 7.0.1768.0.
Code
++include ashinc:ashell.def
? "STOP at ";ODTIM(0,0,0)
STOP
? "GO at ";ODTIM(0,0,0)
END

The log indicates no delay between the two logged messages...
Quote

.SUBMIT STOPGO.CTL/NEXT:0-0-0/W
.TYPE STOPGO.LOG
.LOG 150,277
Already logged in under DSK0:[150,277]
.RUN STOPGO
STOP at 14-Jan-25 17:52:20
Program stop at location counter &h39 of STOPGO.RUN
Enter CR to continue: LOGOFF
GO at 14-Jan-25 17:52:20

The same program run interactively stops and waits at the STOP statement.
Here's the updated (beta) version if you want to test it:

ash-7.0.1768.0-el9-upd.tz
ash-7.0.1768.0-el9-efs-upd.tz
ash70notes.txt

Pay particular attention to the notes regarding the various compiler edits starting with 1052, and note that this is still in Beta!


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3