[Nix-dev] [PATCH] t/allow-arbitrary-strinsg-in-names

Jeff Johnson n3npq at mac.com
Tue Jul 20 18:58:07 CEST 2010


On Jul 20, 2010, at 12:18 PM, Marc Weber wrote:

> allow strings as names in attribute sets:
> 

Exposing whitespace in file names just asks for a whopping
amount of scripting breakage. Your patch (assuming correct)
is the entry point for a world of tedium.

There's nothing intrinsically wrong with enhancing
identifiers by permitting white space whatsoever.

Bu the better approach (imho) is to avoid feeding white space
to scripts in paths. Instead, just attach a human readable
(with whitespace and i18n and utf8 and encodings and ...)
identifier and use the new identifier consistently in human
readable displays instead.

There's no reason why white space MUST be added to nix store paths
that I can think of. OTOH YMMV, everyone's does.

hth

73 de Jeff




More information about the nix-dev mailing list