Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
languages: fix crash on PowerShell fingerprint scripts
Fixes #527.
  • Loading branch information
jkloetzke committed Aug 20, 2023
commit 71ededa3e9f8b13a5ce9121dd3edab5a90782f6d
2 changes: 1 addition & 1 deletion pym/bob/languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ def mangleFingerprints(scriptFragments, env):
# Add snippets as they match and a default settings preamble
ret = [script]
ret.extend(['$ErrorActionPreference="Stop"', 'Set-PSDebug -Strict'])
for n,v in sorted(env.items()):
for k,v in sorted(env.items()):
ret.append('$Env:{}="{}"'.format(k, escapePwsh(v)))
ret.append(PwshLanguage.HELPERS)

Expand Down