diff options
author | sheeaza <winsdenny@outlook.com> | 2021-10-28 13:23:58 +0800 |
---|---|---|
committer | sheeaza <winsdenny@outlook.com> | 2021-10-28 23:10:08 +0800 |
commit | 30d581b29deabf668d793f3ee8b604895c4fcdf8 (patch) | |
tree | 1b5f715aca7f4b8406d5db28d345b0600870b8d2 /pkgs/shells | |
parent | 8652402ac5bc4dff28ac2b9cb37de6d621c9a706 (diff) |
wrapFish: fix early variable expansion
the bash script will retrieve the $var and cause the variable expand to empty
add \ to prevent this, and let fish command to retrieve the variable
Diffstat (limited to 'pkgs/shells')
-rw-r--r-- | pkgs/shells/fish/wrapper.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/shells/fish/wrapper.nix b/pkgs/shells/fish/wrapper.nix index 6713a69d560e..f978f2bdfa4d 100644 --- a/pkgs/shells/fish/wrapper.nix +++ b/pkgs/shells/fish/wrapper.nix @@ -20,6 +20,6 @@ in writeShellScriptBin "fish" '' set --prepend fish_complete_path ${escapeShellArgs complPath} set --prepend fish_function_path ${escapeShellArgs funcPath} set --local fish_conf_source_path ${escapeShellArgs confPath} - for c in $fish_conf_source_path/*; source $c; end + for c in \$fish_conf_source_path/*; source \$c; end " "$@" '') |