nnguyen168 opened a new pull request, #56087:
URL: https://github.com/apache/spark/pull/56087
### What changes were proposed in this pull request?
This PR fixes a shell syntax issue in the PySpark installation
documentation. The `IFS` delimiter in the `PYTHONPATH` export command was not
quoted, which can cause unexpected behavior in certain shell environments.
**Before:**
```bash
export PYTHONPATH=$(ZIPS=("$SPARK_HOME"/python/lib/*.zip); IFS=:; echo
"${ZIPS[*]}"):$PYTHONPATH
```
**After:**
```bash
export PYTHONPATH=$(ZIPS=("$SPARK_HOME"/python/lib/*.zip); IFS=":"; echo
"${ZIPS[*]}"):$PYTHONPATH
```
### Why are the changes needed?
As reported in
[SPARK-51377](https://issues.apache.org/jira/browse/SPARK-51377), the unquoted
`IFS=:` can lead to inconsistent behavior. Quoting the delimiter (`IFS=":"`)
ensures proper shell behavior across different environments (bash, zsh, etc.).
### Does this PR introduce _any_ user-facing change?
No. This is a documentation-only change.
### How was this patch tested?
Manually verified the corrected command works in both bash and zsh shells.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code (claude-opus-4-5-20251101)
This pull request and its description were written by Isaac.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]