corgy-w opened a new pull request, #10483:
URL: https://github.com/apache/seatunnel/pull/10483

   ## Problem
   When submitting a job via `seatunnel.sh`, a job name containing spaces is 
broken due to bash word-splitting.
   
   Example:
   ```bash
   ./bin/seatunnel.sh -m cluster -c /path/to/conf -n "I am split"
   ```
   Actual behavior: only the first token is treated as the job name.
   
   ## Root cause
   The script stores arguments as a plain string (`args=$@`) and later runs:
   ```bash
   java ... ${args}
   ```
   This triggers word-splitting again.
   
   ## Solution
   Store CLI arguments as an array and pass them to Java with `"${args[@]}"` so 
quoted values remain a single argument.
   
   ## Verification (observed argv)
   Before:
   ```
   ... 
   -n
   I
   am
   split
   ```
   After:
   ```
   ...
   -n
   I am split
   ```
   
   ## Impact
   Only affects argument forwarding; no behavior change for other flags.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to