moissinac / csvfix

Automatically exported from code.google.com/p/csvfix
MIT License
0 stars 0 forks source link

Including opt "g" in a null field edit breaks match #80

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Example of problem:

$ echo "one,,three" | csvfix -e 's/^$/two/g'
"one","","three"
$ echo "one,,three" | csvfix edit -e 's/^$/two/'
"one","two","three"

What version of the product are you using? On what operating system?

csvfix 1.7 (Mar  4, 2015) on CentOS 6.5 Linux 64-bit.

Please provide any additional information below.

Admittedly the "g" option is not needed, so simply excluding it is a sufficient 
workaround, but the behavior was unexpected so it might bear investigation.

Original issue reported on code.google.com by wvale...@gmail.com on 9 Mar 2015 at 6:46