[MDEV-30018] command prompt does not accept new line character \n in my.cnf Created: 2022-11-15 Updated: 2022-12-01 Resolved: 2022-12-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Compiling, Platform FreeBSD |
| Affects Version/s: | 10.6.10 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Miroslav Lachman | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | regression | ||
| Environment: |
FreeBSD 12.3-RELEASE-p7 amd64 GENERIC |
||
| Description |
|
We upgraded some of our machines from 10.3 to 10.6 and noticed that mysql client / mariadb client command prompt looks different in 10.6 because it does not accept newline character \n \n is documented in https://mariadb.com/kb/en/mysql-command-line-client/ In 10.3 we had
The prompt looks like this:
With the same settings in MariaDB 10.6 the prompt looks like this:
The prompt is not wrapped to 2 lines. I also tried to define it in section [mariadb-client] but nothing changed. This is clearly a regression from the older versions. |
| Comments |
| Comment by Miroslav Lachman [ 2022-11-16 ] | |||||||||||||||
|
I do more tests. Tab (\t) is ignored too.
| |||||||||||||||
| Comment by Sergei Golubchik [ 2022-11-25 ] | |||||||||||||||
|
were both 10.3 and 10.6 built from ports? | |||||||||||||||
| Comment by Miroslav Lachman [ 2022-11-26 ] | |||||||||||||||
|
Yes, both built from FreeBSD ports tree in clean environment with poudriere tool. | |||||||||||||||
| Comment by Sergei Golubchik [ 2022-11-27 ] | |||||||||||||||
|
Could it be readline-vs-libedit thing? I've just tried (on my linux) on a version > 10.6 and your prompt worked fine, with \n changing to a new line. Please, check what libraries your mysql client was linked with | |||||||||||||||
| Comment by Miroslav Lachman [ 2022-11-28 ] | |||||||||||||||
|
Both versions depends on readline and libedit. This is the package dependencies info
Is there something I can try to change in the configuration? | |||||||||||||||
| Comment by Sergei Golubchik [ 2022-12-01 ] | |||||||||||||||
|
This is the client from 10.6:
10.3 client doesn't have libedit.so.0, so it's indeed readline vs libedit issue. 10.3 is linked with a budled readline, while 10.6 uses system libedit. Use
to get 10.3-like build |