cat --replace not working correctly #122

Closed
steve6375 opened this Issue Jul 24, 2016 · 8 comments

Comments

Projects
None yet
2 participants
@steve6375

steve6375 commented Jul 24, 2016

I want to replace the key TK8TP-XXXXX-XXXXX-RFFTV-B7QPF with a different key

cat --locate=TK8TP --replace=AAAAA-BBBBB-CCCCC-DDDDD-EEEEE /t0.xml

The first occurrence in the file is replaced correctly, but the second occurrence is not done correctly.
Happens in both 0.4.5c and 0.4.6a

This works OK (if I do it in two stages)
cat --locate=TK8TP --replace=AAAAA-BBBBB-CCCCC-DDDDD-EEEEE --number=1 /t0.xml
cat --locate=TK8TP --replace=AAAAA-BBBBB-CCCCC-DDDDD-EEEEE --number=1 /t0.xml

t0.zip

@yaya2007

This comment has been minimized.

Show comment
Hide comment
@yaya2007

yaya2007 Jul 26, 2016

Collaborator

I didn't find the problem.

title cat
cat /t0.xml
pause
cat --locate=TK8TP --replace=AAAAA-BBBBB-CCCCC-DDDDD-EEEEE /t0.xml
cat /t0.xml
pause
-20160726114104

Collaborator

yaya2007 commented Jul 26, 2016

I didn't find the problem.

title cat
cat /t0.xml
pause
cat --locate=TK8TP --replace=AAAAA-BBBBB-CCCCC-DDDDD-EEEEE /t0.xml
cat /t0.xml
pause
-20160726114104

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 26, 2016

It works on small files, but not on the sample that I attached.
Please use the sample file that I attached.

It works on small files, but not on the sample that I attached.
Please use the sample file that I attached.

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 27, 2016

Are you able to reproduce now?
Substitution works if use --replace=XXXX-XX but not for --replace=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
so it seems to depend on the length of the substitution string??

Are you able to reproduce now?
Substitution works if use --replace=XXXX-XX but not for --replace=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
so it seems to depend on the length of the substitution string??

@yaya2007

This comment has been minimized.

Show comment
Hide comment
@yaya2007

yaya2007 Jul 28, 2016

Collaborator

Have a try
Get rid of 'txt"

grldr.rar.txt

Collaborator

yaya2007 commented Jul 28, 2016

Have a try
Get rid of 'txt"

grldr.rar.txt

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 28, 2016

Seems to work now! Thanks! :-)

steve6375 commented Jul 28, 2016

Seems to work now! Thanks! :-)

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Jul 28, 2016

I think #122 is fixed now - thanks :-)

Could you look at Issue #119
#119 please?

This is a serious bug which only affect 0.4.6a and it means many people
cannot use 0.4.6a because it crashes when they run grub4dos menus or batch
files on certain systems.

Several people have spent many hours trying to reproduce the bug and at
last we have a reproducible case which you can test.

The problem occurs when you do a geometry command or find or if exist
command on the 'bad' partition - it seems to crash batch files or lose the
command stack in the console, etc. (memory corruption?).

If you cannot reproduce the problem in Virtual Box, please contact me and I
will describe how to reproduce the problem in greater detail.

Thanks
Steve

On 28 July 2016 at 06:57, yaya2007 notifications@github.com wrote:

Have a try

grldr.rar.txt
https://github.com/chenall/grub4dos/files/387733/grldr.rar.txt


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#122 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrpsaSxzMOViz66DqHhFE7aNtwCbkdks5qaETHgaJpZM4JTh9f
.

I think #122 is fixed now - thanks :-)

Could you look at Issue #119
#119 please?

This is a serious bug which only affect 0.4.6a and it means many people
cannot use 0.4.6a because it crashes when they run grub4dos menus or batch
files on certain systems.

Several people have spent many hours trying to reproduce the bug and at
last we have a reproducible case which you can test.

The problem occurs when you do a geometry command or find or if exist
command on the 'bad' partition - it seems to crash batch files or lose the
command stack in the console, etc. (memory corruption?).

If you cannot reproduce the problem in Virtual Box, please contact me and I
will describe how to reproduce the problem in greater detail.

Thanks
Steve

On 28 July 2016 at 06:57, yaya2007 notifications@github.com wrote:

Have a try

grldr.rar.txt
https://github.com/chenall/grub4dos/files/387733/grldr.rar.txt


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#122 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZrpsaSxzMOViz66DqHhFE7aNtwCbkdks5qaETHgaJpZM4JTh9f
.

@yaya2007

This comment has been minimized.

Show comment
Hide comment
@yaya2007

yaya2007 Jul 28, 2016

Collaborator

See, but there is no reproduce.

Collaborator

yaya2007 commented Jul 28, 2016

See, but there is no reproduce.

@steve6375

This comment has been minimized.

Show comment
Hide comment
@steve6375

steve6375 Aug 9, 2016

Fixed in 2016-08-06 0.4.6a

Fixed in 2016-08-06 0.4.6a

@steve6375 steve6375 closed this Aug 9, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment