]> granicus.if.org Git - python/commitdiff
Issue #26665: Remove mis-use of ``$`` in activate.fish.
authorBrett Cannon <brett@python.org>
Thu, 30 Jun 2016 18:41:55 +0000 (11:41 -0700)
committerBrett Cannon <brett@python.org>
Thu, 30 Jun 2016 18:41:55 +0000 (11:41 -0700)
This is a revertion of cfc66e37eb8e.

Thanks to 鄭景文 for the bug report. Thanks to Tin Tvrtković, Xiang
Zhang, and Dan McCombs for diagnosing the issue.

Lib/venv/scripts/posix/activate.fish
Misc/NEWS

index fb7f5c0db959794377de50a076ae65c4c1d513b9..45391aa01c9d50f30afef81daa9ea9048ae461c8 100644 (file)
@@ -55,8 +55,8 @@ if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
     # with the original prompt function renamed, we can override with our own.
     function fish_prompt
         # Prompt override?
-        if test -n "$__VENV_PROMPT__"
-            printf "%s%s%s" "$__VENV_PROMPT__" (set_color normal) (_old_fish_prompt)
+        if test -n "__VENV_PROMPT__"
+            printf "%s%s%s" "__VENV_PROMPT__" (set_color normal) (_old_fish_prompt)
             return
         end
         # ...Otherwise, prepend env
index 330d1707e432a12b678754172b72fc1644bd3a73..f8ed7acd3d05f777a6e5a97e8ce66890fc9690a8 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -13,6 +13,8 @@ Core and Builtins
 Library
 -------
 
+- Issue #26664: Fix activate.fish by removing mis-use of ``$``.
+
 - Issue #22115: Fixed tracing Tkinter variables: trace_vdelete() with wrong
   mode no longer break tracing, trace_vinfo() now always returns a list of
   pairs of strings, tracing in the "u" mode now works.