Skip to content

Conversation

@euxaristia
Copy link

@euxaristia euxaristia commented Nov 10, 2025

Motivation:

The current unquoted curl commands with substitution used for installing swiftly on Linux fail when executed in the Zsh (Z Shell) environment.

Zsh's default behavior is to treat special characters within an unquoted URL (such as periods, slashes, or the parentheses around $(uname -m)) as patterns for file matching. When Zsh cannot find a file matching that unusual pattern, it halts execution and returns an error (like zsh: no matches found). This prevents users running Zsh from easily following the installation instructions.

Modifications:

Added double-quotes " around the full URL in the curl -O commands used for downloading the swiftly installer.

The updated command now looks like this:
curl -O "https://download.swift.org/swiftly/linux/swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz"

Double-quotes ensure the shell treats the entire URL as a single, literal string argument for curl, while still allowing the necessary substitution of the architecture via $(uname -m).

Result:

The Linux installation commands are now fully compatible with both the common Bash shell and the widely used Z shell, making the documentation more robust for a broader Linux user base.

@euxaristia euxaristia requested a review from a team as a code owner November 10, 2025 15:02
@euxaristia euxaristia changed the title Modify curl command quotes in Linux installation guide for zsh Double-quote curl commands to enable susbtitution in Linux installation guide on zsh Nov 10, 2025
@euxaristia euxaristia changed the title Double-quote curl commands to enable susbtitution in Linux installation guide on zsh Double-quote curl commands to enable substitution in Linux installation guide on zsh Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant