Details
-
Type:
Bug
-
Status: In Review
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 10.1, 10.0, 5.5
-
Fix Version/s: 10.1
-
Component/s: Scripts & Clients
-
Labels:None
-
Sprint:10.1.8-3, 10.1.8-4
Description
Note: filed on behalf of Maarten Vanraes / AL13N.
If you execute silent=1 query in mysql, from a tty or some kind of automated script, the output will be different, because silent will then be 2 instead of 1. This will have the effect of removing column names.
I postponed the decision for being silent when not using a tty AFTER processing the options, the output of the scripts will be the same, except if you don't add a -s flag, in which case (for historical relevance) it will become silent after all...
Gliffy Diagrams
Attachments
Issue Links
- links to
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
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.
This patch also makes "--batch --silent" on a tty to behave differently from "--silent" on a non-tty.
Sergei Golubchik, could you share your opinion on this?