Commit 82042d2
committed
refactor(pkgadd): fix various problems
* fix a leaked variable `filedir` (written directly in the global
context)
* fix a problem that filenames containing IFS would be splitted
`$(/bin/ls ...)`.
* fix a problem that the fixed path `/bin/ls' always uses the system
`ls' even when the user wants to replace it with another version for
virtual environments, NixOS, etc.
* fix a problem that elements of tmplist would be added multiple times
with `tmplist+=(${tmplist[@]-} new_elem)`
* fix a problem that word splitting and pathname expansions are
performed for `${tmplist[@]-}.`
* fix a problem that the package names can be splitted by (unusual)
IFS
* fix localvar_inherit for `pkginst_list`1 parent b7396b5 commit 82042d2
1 file changed
+10
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
54 | | - | |
55 | | - | |
| 52 | + | |
| 53 | + | |
56 | 54 | | |
57 | | - | |
| 55 | + | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
0 commit comments