diff options
| author | Profpatsch <mail@profpatsch.de> | 2020-01-22 23:24:06 +0100 |
|---|---|---|
| committer | Profpatsch <mail@profpatsch.de> | 2020-01-23 14:47:38 +0100 |
| commit | 582354d3b6161384cf69a90f6c00d7e29382950a (patch) | |
| tree | e38cd6623da82c4154a3aae433e2db7fba7e4d9a /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | 88a7f65c834ec09ce9df0c23c9935630e17a0c4a (diff) | |
lib/cli: encodeGNUCommandLine -> toGNUCommandLineShell
The semantic difference between `encode` and `to` is not apparent.
Users are likely to confuse both functions (which leads to unexpected
error messages about the wrong types). Like in `generators.nix`, all
functions should be prefixed by `to`.
Furthermore, converting to a string depends on the target context. In
this case, it’s a POSIX shell, so we should name it that (compare
`escapeShellArg` in `strings.nix`).
We can later add versions that escape for embedding in e.g. python
scripts or similar.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
