From: SourceForge.net <no...@so...> - 2009-04-23 14:48:04
|
Bugs item #2778601, was opened at 2009-04-22 15:23 Message generated for change (Comment added) made by walterpachl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=2778601&group_id=119701 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 7 Private: No Submitted By: Walter Pachl (walterpachl) Assigned to: Nobody/Anonymous (nobody) Summary: Problem with linein Initial Comment: bug4.rex shows wrong data in the second loop ---------------------------------------------------------------------- >Comment By: Walter Pachl (walterpachl) Date: 2009-04-23 16:48 Message: The second loop should show what the 'type' dir shows correctly: The correct output, i.e., the directory listing created by the 'dir' command for the subdirectory aa (or bb in BUG4B) ---------------------------------------------------------------------- Comment By: Rick McGuire (bigrixx) Date: 2009-04-23 16:41 Message: Still trying to nail down the what the actual failure symptoms are here. The information from the second loop looks like it is the same as the first loop, with some characters munged. What SHOULD the result be? Is the problem the bad characters, or is all of the data bad? ---------------------------------------------------------------------- Comment By: Walter Pachl (walterpachl) Date: 2009-04-23 16:37 Message: I changed everything and the problem persists. Yes, the dir command fills dir.txt correctly (as the type dir.txt shows. Sending bug4b.rex & .txt offline ---------------------------------------------------------------------- Comment By: Rick McGuire (bigrixx) Date: 2009-04-23 16:22 Message: A couple of additional question. The output looks like the file from the first pass with some characters at the beginning messed up. What is the content of the file it is reading from in the second loop? Is the information in that file correct? ---------------------------------------------------------------------- Comment By: Rick McGuire (bigrixx) Date: 2009-04-23 16:19 Message: I saw the output you attached to the report initially, and I believe you're seeing this, but so far, I've not been able to recreate this, which is making it difficult to debug. I'm just looking for more specific to help me narrow the search. Is this reproducible every time your run this program? Is the output always the same? Does it change if you use a different directories? Any additional information you can provide will help at this point. ---------------------------------------------------------------------- Comment By: Walter Pachl (walterpachl) Date: 2009-04-23 15:56 Message: I installed the latest Beta on my alternate PC (Windows XP Professional running there) and the problem is reproducable. Actually it all started with a rather complicated program that ran havoc and as a good citizen I reproduced the problem with a small program written for that purpose. Did you create that second directory I want to show in the second loop? The Output I see is --- hmm cut and paste don't work here -- I send you the bug4.txt separately Walter ---------------------------------------------------------------------- Comment By: Rick McGuire (bigrixx) Date: 2009-04-22 17:14 Message: Is this consistenly reproducable for you? I'm not seeing the problem here. Are you running with the latest beta refresh? You're obviously using windows, but which version are you running on. ---------------------------------------------------------------------- Comment By: Walter Pachl (walterpachl) Date: 2009-04-22 15:24 Message: Here's bug4.rex: /* REXX */ oid='c:\bug4.txt'; 'erase' oid Parse Version v Call o 'Version' v dir='c:\dir.txt' 'dir *.* >' dir Do i=1 By 1 While lines(dir)>0 l=linein(dir) If i<=10 Then Call o 'loop1' l End Call lineout dir 'dir c:\aa\*.* >' dir 'type' dir Do i=1 By 1 While lines(dir)>0 l=linein(dir) If i<=10 Then Call o 'loop2' l End Call lineout dir Exit o: Return lineout(oid,arg(1)) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=2778601&group_id=119701 |