我有以下脚本来启动 MySQL 进程:
if [ "${1:0:1}" = '-' ]; then set -- mysqld_safe "$@" fi if [ "$1" = 'mysqld_safe' ]; then DATADIR="/var/lib/mysql" ...
在这种情况下,1:0:1 是什么意思?
linux shell bash
bash ×1
linux ×1
shell ×1