Commit 3a7206b
Ryan Nielsen
Handle spaces in paths when generating caches
Fixes zsh-users#582
Current antigen branch doesn't properly handle spaces in paths when
generating caches, so if your antigen plugins live in a path with
spaces, the resulting $ADOTDIR/init.zsh will have improper paths for
fpath and path.
We'll address this by moving away from arrays when generating the _PATH
and _fpath variables for cached output, and will instead append strings
wrapped in double quotes. Then, when actually creating the caches, we'll
again avoid zsh array parameter expansion and instead just insert the
string list. This approach sidesteps a number of subtle issues that
arise when relying on arrays, and results is a very straightforward
cache file.1 parent c91f77c commit 3a7206b
2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1818 | 1818 | | |
1819 | 1819 | | |
1820 | 1820 | | |
1821 | | - | |
1822 | | - | |
| 1821 | + | |
| 1822 | + | |
1823 | 1823 | | |
1824 | 1824 | | |
1825 | 1825 | | |
| |||
1834 | 1834 | | |
1835 | 1835 | | |
1836 | 1836 | | |
1837 | | - | |
| 1837 | + | |
1838 | 1838 | | |
1839 | 1839 | | |
1840 | 1840 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments