Changeset View
Changeset View
Standalone View
Standalone View
docs/options.md
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | |||||
61 | However, using file system permissions like this can potentially be circumvented | 61 | However, using file system permissions like this can potentially be circumvented | ||
62 | by the user if they have write access to the containing directory or can modify | 62 | by the user if they have write access to the containing directory or can modify | ||
63 | environment variables (and `XDG_CONFIG_HOME` in particular). | 63 | environment variables (and `XDG_CONFIG_HOME` in particular). | ||
64 | 64 | | |||
65 | 65 | | |||
66 | 66 | | |||
67 | Shell Expansion | 67 | Shell Expansion | ||
68 | --------------- | 68 | --------------- | ||
69 | 69 | | |||
70 | If an entry is marked with `$e`, environment variables and shell commands will | 70 | If an entry is marked with `$e`, environment variables will be expanded. | ||
kossebau: "and shell commands" to be dropped here no? | |||||
71 | be expanded. | | |||
72 | 71 | | |||
73 | Name[$e]=$USER | 72 | Name[$e]=$USER | ||
74 | Host[$e]=$(hostname) | | |||
75 | 73 | | |||
76 | When the "Name" entry is read `$USER` will be replaced with the value of the | 74 | When the "Name" entry is read `$USER` will be replaced with the value of the | ||
77 | `$USER` environment variable, and `$(hostname)` will be replaced with the output | 75 | `$USER` environment variable. | ||
78 | of the `hostname` command. | | |||
79 | 76 | | |||
80 | Note that the application will replace `$USER` and `$(hostname)` with their | 77 | Note that the application will replace `$USER` with its | ||
Grammar suggestion: Note that the application will replace $USER with its expanded values after saving. mdawson: Grammar suggestion: Note that the application will replace `$USER` with its expanded values… | |||||
81 | respective expanded values after saving. To prevent this combine the `$e` option | 78 | expanded value after saving. To prevent this combine the `$e` option | ||
82 | with `$i` (immmutable) option. For example: | 79 | with `$i` (immmutable) option. For example: | ||
83 | 80 | | |||
84 | Name[$ei]=$USER | 81 | Name[$ei]=$USER | ||
85 | 82 | | |||
86 | This will make that the "Name" entry will always return the value of the `$USER` | 83 | This will make that the "Name" entry will always return the value of the `$USER` | ||
87 | environment variable. The user will not be able to change this entry. | 84 | environment variable. The user will not be able to change this entry. | ||
88 | 85 | | |||
89 | The following syntax for environment variables is also supported: | 86 | The following syntax for environment variables is also supported: | ||
Show All 10 Lines |
"and shell commands" to be dropped here no?