From: SourceForge.net <no...@so...> - 2010-12-28 06:07:50
|
Bugs item #3146828, was opened at 2010-12-28 07:07 Message generated for change (Tracker Item Submitted) made by uzinngre You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=3146828&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: Interpreter Group: v4.1 Status: Open Resolution: None Priority: 5 Private: No Submitted By: U. Zinngrebe (uzinngre) Assigned to: Nobody/Anonymous (nobody) Summary: ID: 2975571 3040887 (STDIN in pipeline) reappeared Initial Comment: These problems were supposedly fixed in 4.1.0 but apparently aren't. Also in trunk ---------------------------------------------------------------------------------------------------------------- OK as first stage in the pipeline: uli@ulmo:~/bin> rexx test.rex <temp.dat | more HELLO aaa bbb ccc GOODBYE ------------------------------------------------------------------------------- As second stage in the pipeline, STDIN does not receive input: uli@ulmo:~/bin> more <temp.dat | rexx test.rex HELLO GOODBYE ------------------------------------------------------------------------------- test.rex: say hello do while lines() line = linein() call lineout , line -- say line end say goodbye ------------------------------------------------------------------------------- temp.dat: aaa bbb ccc -------------------------------------------------------------------- uli@ulmo:~/bin> rpm -qf /usr/bin/rexx ooRexx-4.1.0-6435.opensuse1130.x86_64 uli@ulmo:~/bin> rexx -v Open Object Rexx Version 4.1.0 Build date: Dec 3 2010 Addressing Mode: 64 ------------------------------------------------------------------------------------------------------------- After re-installing from trunk (ver. 6525) the problem appears solved, except that in the second pipeline stage lines() is true one line beyond the end of file: uli@ulmo:~/bin> more <temp.dat | rexx test.rex HELLO aaa bbb ccc GOODBYE uli@ulmo:~/bin> rexx test.rex <temp.dat | more HELLO aaa bbb ccc GOODBYE uli@ulmo:~/bin> rpm -qf /usr/bin/rexx ooRexx-4.2.0-6525.opensuse1140.x86_64 uli@ulmo:~/bin> uname -a Linux ulmo 2.6.34.7-0.5-desktop #1 SMP PREEMPT 2010-10-25 08:40:12 +0200 x86_64 x86_64 x86_64 GNU/Linux ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=3146828&group_id=119701 |
From: SourceForge.net <no...@so...> - 2012-08-04 04:56:49
|
Bugs item #3146828, was opened at 2010-12-27 22:07 Message generated for change (Comment added) made by miesfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=3146828&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: Interpreter Group: v4.1 Status: Open Resolution: None Priority: 5 Private: No Submitted By: U. Zinngrebe (uzinngre) Assigned to: Nobody/Anonymous (nobody) Summary: ID: 2975571 3040887 (STDIN in pipeline) reappeared Initial Comment: These problems were supposedly fixed in 4.1.0 but apparently aren't. Also in trunk ---------------------------------------------------------------------------------------------------------------- OK as first stage in the pipeline: uli@ulmo:~/bin> rexx test.rex <temp.dat | more HELLO aaa bbb ccc GOODBYE ------------------------------------------------------------------------------- As second stage in the pipeline, STDIN does not receive input: uli@ulmo:~/bin> more <temp.dat | rexx test.rex HELLO GOODBYE ------------------------------------------------------------------------------- test.rex: say hello do while lines() line = linein() call lineout , line -- say line end say goodbye ------------------------------------------------------------------------------- temp.dat: aaa bbb ccc -------------------------------------------------------------------- uli@ulmo:~/bin> rpm -qf /usr/bin/rexx ooRexx-4.1.0-6435.opensuse1130.x86_64 uli@ulmo:~/bin> rexx -v Open Object Rexx Version 4.1.0 Build date: Dec 3 2010 Addressing Mode: 64 ------------------------------------------------------------------------------------------------------------- After re-installing from trunk (ver. 6525) the problem appears solved, except that in the second pipeline stage lines() is true one line beyond the end of file: uli@ulmo:~/bin> more <temp.dat | rexx test.rex HELLO aaa bbb ccc GOODBYE uli@ulmo:~/bin> rexx test.rex <temp.dat | more HELLO aaa bbb ccc GOODBYE uli@ulmo:~/bin> rpm -qf /usr/bin/rexx ooRexx-4.2.0-6525.opensuse1140.x86_64 uli@ulmo:~/bin> uname -a Linux ulmo 2.6.34.7-0.5-desktop #1 SMP PREEMPT 2010-10-25 08:40:12 +0200 x86_64 x86_64 x86_64 GNU/Linux ---------------------------------------------------------------------- >Comment By: Mark Miesfeld (miesfeld) Date: 2012-08-03 21:56 Message: Some notes on this. In Windows it looks okay to me in both 4.1.0 and trunk: C:\work.ooRexx\bug.work\stdinPipeLineReappeared>rexx -v Open Object Rexx Version 4.1.0 Build date: Dec 5 2010 Addressing Mode: 64 C:\work.ooRexx\bug.work\stdinPipeLineReappeared>more <temp.dat | rexx test.rex HELLO aaa bbb ccc GOODBYE C:\work.ooRexx\bug.work\stdinPipeLineReappeared>rexx -v Open Object Rexx Version 4.2.0 - Internal Test Version Build date: Jul 30 2012 Addressing Mode: 64 C:\work.ooRexx\bug.work\stdinPipeLineReappeared>more <temp.dat | rexx test.rex HELLO aaa bbb ccc GOODBYE Note that the empty line depends on the format of temp.dat If temp.dat is this, in hex: 616161OD 0A626262 0D0A6363 630D0A The output is as above. But, if temp.dat is this, in hex: 616161OD 0A626262 0D0A6363 630D0A0D 0A The output is this: C:\work.ooRexx\bug.work\stdinPipeLineReappeared>more <temp.dat | rexx test.rex HELLO aaa bbb ccc GOODBYE C:\work.ooRexx\bug.work\stdinPipeLineReappeared> which also seems correct to me. I'll test tomorrow on a Linux system. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=3146828&group_id=119701 |
From: SourceForge.net <no...@so...> - 2012-08-04 13:03:36
|
Bugs item #3146828, was opened at 2010-12-27 22:07 Message generated for change (Comment added) made by uzinngre You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=3146828&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: Interpreter Group: v4.1 Status: Open Resolution: None Priority: 5 Private: No Submitted By: U. Zinngrebe (uzinngre) Assigned to: Nobody/Anonymous (nobody) Summary: ID: 2975571 3040887 (STDIN in pipeline) reappeared Initial Comment: These problems were supposedly fixed in 4.1.0 but apparently aren't. Also in trunk ---------------------------------------------------------------------------------------------------------------- OK as first stage in the pipeline: uli@ulmo:~/bin> rexx test.rex <temp.dat | more HELLO aaa bbb ccc GOODBYE ------------------------------------------------------------------------------- As second stage in the pipeline, STDIN does not receive input: uli@ulmo:~/bin> more <temp.dat | rexx test.rex HELLO GOODBYE ------------------------------------------------------------------------------- test.rex: say hello do while lines() line = linein() call lineout , line -- say line end say goodbye ------------------------------------------------------------------------------- temp.dat: aaa bbb ccc -------------------------------------------------------------------- uli@ulmo:~/bin> rpm -qf /usr/bin/rexx ooRexx-4.1.0-6435.opensuse1130.x86_64 uli@ulmo:~/bin> rexx -v Open Object Rexx Version 4.1.0 Build date: Dec 3 2010 Addressing Mode: 64 ------------------------------------------------------------------------------------------------------------- After re-installing from trunk (ver. 6525) the problem appears solved, except that in the second pipeline stage lines() is true one line beyond the end of file: uli@ulmo:~/bin> more <temp.dat | rexx test.rex HELLO aaa bbb ccc GOODBYE uli@ulmo:~/bin> rexx test.rex <temp.dat | more HELLO aaa bbb ccc GOODBYE uli@ulmo:~/bin> rpm -qf /usr/bin/rexx ooRexx-4.2.0-6525.opensuse1140.x86_64 uli@ulmo:~/bin> uname -a Linux ulmo 2.6.34.7-0.5-desktop #1 SMP PREEMPT 2010-10-25 08:40:12 +0200 x86_64 x86_64 x86_64 GNU/Linux ---------------------------------------------------------------------- >Comment By: U. Zinngrebe (uzinngre) Date: 2012-08-04 06:03 Message: Hi Mark, thank you for looking into that old bug report. Two years later I find it difficult to understand myself. I just checked (trunk, rev. 7988) and the empty line is still there. The file temp.dat doesn't have two trailing end of line sequences: uli@ulmo:~> echo 'aaa' >temp.dat uli@ulmo:~> echo 'bbb' >>temp.dat uli@ulmo:~> echo 'ccc' >>temp.dat uli@ulmo:~> cat temp.dat aaa bbb ccc uli@ulmo:~> cat bin/test Then I modified the test program to see what is coming through the pipeline, and it is the nul string: uli@ulmo:~> cat bin/test.rex say hello do i=1 while lines() line = linein() call lineout, i c2x(line) '.' c2d(line) end say goodbye uli@ulmo:~> more <temp.dat | rexx test.rex HELLO 1 616161 . 6381921 2 626262 . 6447714 3 636363 . 6513507 4 . 0 GOODBYE uli@ulmo:~> That makes me wonder whether the more command would append an end-or-file sequence (like CTRL-Z), which is recognised & discarded by linein(), but taken for data by lines(). Cheers, Uli btw: isn't it odd that c2d() returns zero for the nul string ? ---------------------------------------------------------------------- Comment By: Mark Miesfeld (miesfeld) Date: 2012-08-03 21:56 Message: Some notes on this. In Windows it looks okay to me in both 4.1.0 and trunk: C:\work.ooRexx\bug.work\stdinPipeLineReappeared>rexx -v Open Object Rexx Version 4.1.0 Build date: Dec 5 2010 Addressing Mode: 64 C:\work.ooRexx\bug.work\stdinPipeLineReappeared>more <temp.dat | rexx test.rex HELLO aaa bbb ccc GOODBYE C:\work.ooRexx\bug.work\stdinPipeLineReappeared>rexx -v Open Object Rexx Version 4.2.0 - Internal Test Version Build date: Jul 30 2012 Addressing Mode: 64 C:\work.ooRexx\bug.work\stdinPipeLineReappeared>more <temp.dat | rexx test.rex HELLO aaa bbb ccc GOODBYE Note that the empty line depends on the format of temp.dat If temp.dat is this, in hex: 616161OD 0A626262 0D0A6363 630D0A The output is as above. But, if temp.dat is this, in hex: 616161OD 0A626262 0D0A6363 630D0A0D 0A The output is this: C:\work.ooRexx\bug.work\stdinPipeLineReappeared>more <temp.dat | rexx test.rex HELLO aaa bbb ccc GOODBYE C:\work.ooRexx\bug.work\stdinPipeLineReappeared> which also seems correct to me. I'll test tomorrow on a Linux system. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=3146828&group_id=119701 |