Bug #82217 | SED errors when running generate_sql_file | ||
---|---|---|---|
Submitted: | 13 Jul 2016 14:35 | Modified: | 14 Jul 2016 4:21 |
Reporter: | Hugo Palma | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: SYS Schema | Severity: | S3 (Non-critical) |
Version: | 1.5.1 | OS: | Ubuntu |
Assigned to: | CPU Architecture: | Any |
[13 Jul 2016 14:35]
Hugo Palma
[14 Jul 2016 4:21]
MySQL Verification Team
Hello Hugo Palma, Thank you for the report. Thanks, Umesh
[21 Jul 2016 22:47]
Jesper wisborg Krogh
Posted by developer: Hi Hugo, Thank you for the bug report. I believe the generated SQL file should still be correct. Can you confirm that? Thanks, Jesper
[22 Jul 2016 1:21]
Tsubasa Tanaka
I seem this causes these lines. https://github.com/mysql/mysql-sys/blob/1.5.1/generate_sql_file.sh#L207-L210 `-i ''` raises error, because sed interprets '' as filename(not prefix). If what you need is telling "-i with blank prefix", you have to set it `-i''` (without space character). But I found the other places where using sed with -i option, they don't give any arguments to `-i`. https://github.com/mysql/mysql-sys/blob/1.5.1/generate_sql_file.sh#L152-L160 https://github.com/mysql/mysql-sys/blob/1.5.1/generate_sql_file.sh#L195 So, is `-i ''` a typo?
[25 Jul 2016 13:36]
Hugo Palma
@Jesper, the sql file seems to be just fine. In fact, the only difference i see by comparing with a file generated with no error is that the one with the errors has an extra new line at the end.