[MDEV-8435] [PATCH] In case of no stdin tty, wrong silent level can be set Created: 2015-07-08 Updated: 2015-11-11 Resolved: 2015-11-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 5.5, 10.0, 10.1 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Sergei Golubchik |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 10.1.8-3, 10.1.8-4, 10.1.9-3 |
| Description |
|
Note: filed on behalf of maartenvanraes / alien.
Patch: https://github.com/MariaDB/server/pull/82 |
| Comments |
| Comment by Sergey Vojtovich [ 2015-09-28 ] |
|
It is documented behavior that batch enables "--silent" and multiple "--silent" produces less output: https://mariadb.com/kb/en/mariadb/mysql-command-line-client/ This patch makes single "--silent" on a non-tty meaningless. serg, could you share your opinion on this? |
| Comment by Sergei Golubchik [ 2015-10-03 ] |
|
Yeah, I can easily imagine that this change would break existing scripts that use mysql --silent. alien, what is your use case? You have silent=1 in the my.cnf and you see different behavior for batch and interactive? An easy workaround would be to add silent=0 (or disable-silent) before silent=1. That would reset silent, and as a result you'll have identical value of silent both in batch and interactive modes. |