diff --git a/mysqlloadcsv b/mysqlloadcsv index ab8d5a2..e90415b 100755 --- a/mysqlloadcsv +++ b/mysqlloadcsv @@ -151,7 +151,8 @@ splitfsep2 "$dbtable" . database table if [ -z "$database" -a -n "$auto_db" ]; then database="$auto_db" if [ -z "$table" -a -n "$input" -a "$input" != "-" ]; then - table="${input%.*}" + table="$(basename -- "$input")" + table="${table%.*}" fi fi