Commit dda037c
committed
Do not emulate shell expansions
`~` is expanded by the shell before being passed to the program.
Programs don't need to re implement this. Compare:
> file ~/.profile
/home/fredefox/.profile: ASCII text
> file "~/.profile"
~/.profile: cannot open `~/.profile' (No such file or directory)
You can test what something expands to with `echo`:
> echo ~/.profile
/home/fredefox/.profile1 parent 4bddf34 commit dda037c
1 file changed
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
28 | | - | |
| 26 | + | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 39 | + | |
44 | 40 | | |
45 | | - | |
| 41 | + | |
46 | 42 | | |
47 | 43 | | |
48 | 44 | | |
0 commit comments