I particularly prefer camelCase!

2014-10-10 19:35 GMT-03:00 Shell Turner <[email protected]>:
> Wouldn't it make more sense to simply map foo-bar on a derivation to
> foo_bar as a shell variable? Are there any significant cases where
> this would be problematic?
>
> On 10 October 2014 22:39, Luca Bruno <[email protected]> wrote:
>> derivation {
>>   inherit foo-bar;
>>   buildPhase = ''
>>     use $foo-bar...
>>   '';
>> }
>>
>> Apart ${foo-bar}.
>>
>> On Fri, Oct 10, 2014 at 11:18 PM, Bjørn Forsman <[email protected]>
>> wrote:
>>>
>>> On 10 October 2014 22:56, Luca Bruno <[email protected]> wrote:
>>> > Dash in package names are cool, because they map to the real package
>>> > name.
>>> > However I just found a breaker: bash does not support variables with
>>> > dash.
>>> > $foo-bar or ${foo-bar} or whatever does not work.
>>>
>>> I don't understand. Why/when do we need bash variable _identifiers_
>>> named like packages (with dashes)? And what values would those
>>> "package name variables" contain?
>>>
>>> Best regards,
>>> Bjørn Forsman
>>
>>
>>
>>
>> --
>> www.debian.org - The Universal Operating System
>>
>> _______________________________________________
>> nix-dev mailing list
>> [email protected]
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
> _______________________________________________
> nix-dev mailing list
> [email protected]
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to