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

   ## What changed
   `seatunnel.sh` used `args=$@` and later executed `java ... ${args}`. When 
`-n` (job name) contains spaces, bash performs word-splitting and the job name 
is truncated (e.g. only the first word is kept).
   
   This PR switches to an argument array and passes args with `"${args[@]}"`, 
preserving values with spaces.
   
   ## How to reproduce
   ```bash
   ./bin/seatunnel.sh -m cluster -c /path/to/conf -n "我是 割裂"
   ```
   
   ## Verification (argv observed by a fake java wrapper)
   ### Before
   ```
   11:-n
   12:我是
   13:割裂
   ```
   
   ### After
   ```
   11:-n
   12:我是 割裂
   ```
   
   ## Notes
   No functional changes for other args; local-mode log filename detection 
still works.
   


-- 
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