Skip to content

Fix unquoted shell parameter substitutions in cutadapt_paired rule#83

Merged
agillen merged 2 commits intoconfig_update_zshfrom
copilot/sub-pr-82
Jan 28, 2026
Merged

Fix unquoted shell parameter substitutions in cutadapt_paired rule#83
agillen merged 2 commits intoconfig_update_zshfrom
copilot/sub-pr-82

Conversation

Copy link
Contributor

Copilot AI commented Jan 28, 2026

Addresses shell quoting issue in the cutadapt_paired rule where unquoted parameter substitutions in test expressions cause errors when parameters are empty or contain special characters.

Changes

  • Quote {params.bc_cut} in shell test: [ -z "{params.bc_cut}" ]
  • Quote {params.bc_length1} in shell test: [ -z "{params.bc_length1}" ]

Without quotes, empty parameters cause [ to receive missing arguments, and special characters can trigger word-splitting. This is standard shell escaping for zsh/bash test expressions.

-        if [ -z {params.bc_cut} ] ; then
+        if [ -z "{params.bc_cut}" ] ; then

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: agillen <4809242+agillen@users.noreply.github.com>
@agillen agillen marked this pull request as ready for review January 28, 2026 07:20
Copilot AI changed the title [WIP] Address feedback on zsh-dependent config revamp PR Fix unquoted shell parameter substitutions in cutadapt_paired rule Jan 28, 2026
Copilot AI requested a review from agillen January 28, 2026 07:21
@agillen agillen merged commit e842c55 into config_update_zsh Jan 28, 2026
0 of 2 checks passed
@agillen agillen deleted the copilot/sub-pr-82 branch January 28, 2026 07:24
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.

2 participants