mysql-server/mysql-test/t/mysql_system_cmd_unix.test
2025-03-05 14:31:37 +07:00

11 lines
659 B
Text

--source include/not_windows.inc
# Check that the mysql client's system command(\! in short) can execute
# commands on the command interpreter through which the client is invoked
# and that it can use the latter's STDIN, STDOUT and STDERR streams.
--exec $MYSQL test -e "system echo From_system_to_STDOUT" 2>&1
--exec $MYSQL test -e "\\! echo From_\\\\!_to_STDOUT" 2>&1
--exec $MYSQL test -e "system echo From_system_to_STDERR >> /dev/stderr" 2>&1
--exec $MYSQL test -e "\\! echo From_\\\\!_to_STDERR >> /dev/stderr" 2>&1
--exec echo "From_STDIN_to_system" | $MYSQL test -e "system cat" 2>&1
--exec echo "From_STDIN_to_\\!" | $MYSQL test -e "\\! cat" 2>&1