Bash: an assignment in a loop body that reads the loop variable is not listed on later commands
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 48/100
Piste de recherche
The issue names no source files or tests; start by locating how SST records assignment facts for commands inside Bash loop bodies, then trace the handling of assignments that read the loop variable. Add or find coverage for the provided for loop example and verify later git status occurrences list the assignment with a proven value or Unknown, while MayAffectProcessEnvironment remains true unless the complete-environment rule proves otherwise.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Problem
An assignment inside a loop body that reads the loop variable does not appear in the assignment facts of the later commands in that body.
Example:
for i in 1 2; do GIT_DIR=/tmp/r$i; git status; done
- If
GIT_DIRis in the launch environment,git statusruns withGIT_DIR=/tmp/r1and then withGIT_DIR=/tmp/r2. - SST does not list the
GIT_DIRassignment on thegit statusoccurrence.
Impact
A consumer that reads the assignment facts (for example, an approval digest) does not see that the environment of git status can change.
Expected
- List the assignment on each later command in the body, with the value set when SST proves it (
/tmp/r1,/tmp/r2), or Unknown. - Keep
MayAffectProcessEnvironmenttrue unless the complete-environment rule (https://github.com/Aaronontheweb/ShellSyntaxTree/pull/248) proves otherwise.
Found by the review of https://github.com/Aaronontheweb/ShellSyntaxTree/pull/248 (dev has the same gap).
- Langage dominant
- C#
- Étoiles
- 15
- Forks
- 0
- Merge moyen
- 9 h 8 min
- PR mergées (30 j)
- 46
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Aaronontheweb/ShellSyntaxTree
-
Difficulté 3/5 1-2 jours Accessibilité débutants 57/100
Aaronontheweb/ShellSyntaxTree#244 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
Aaronontheweb/ShellSyntaxTree#236 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
Aaronontheweb/ShellSyntaxTree#235 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 38/100
Aaronontheweb/ShellSyntaxTree#227 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
Aaronontheweb/ShellSyntaxTree#190 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de Aaronontheweb/ShellSyntaxTree
Issues similaires
-
[i18n] 安装实例完成后的成功提示未正确本地化Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
PCL-Community/PCL-CE#3658 ·
Les mainteneurs répondent en général sous 1 jour
-
Deploy & Patch-issues opprettes ikke: create-pnd-issues.yml har feilet hver uke siden 2025-09-08Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Altinn/altinn-auth#4359 ·
Les mainteneurs répondent en général sous 1 jour
-
アプリ: チャット 優先: 中 提案
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
yksr-melt/Meltype#243 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Workflows: a workflow stored with null conditions is skipped with an exception instead of runOuvertebug core
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
type/automation type/tech-debt
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour