[pass] Makefile not compatible with dash
René Neumann
lists at necoro.eu
Tue Apr 29 13:37:28 CEST 2014
Am 28.04.2014 23:59, schrieb Matthew Cengia:
> On 2014-04-28 17:22, René Neumann wrote: [...]
>> I'm by no means a shell expert, but I think, POSIX has '=' as
>> the equality operator only.
>
> This is correct; using single brackets [ ] you should only use the
> single =.
>
>> Also no argument must be empty, so it should be more along the
>> lines of: [ "x$(FORCE_BASHCOMP)" = "x1" ].
>
> This isn't correct; you're allowed to have empty arguments, but
> not *missing* arguments; as long as they're quoted, this isn't a
> problem:
>
> | dash$ [ 'foo' == 'foo' ] && echo true | dash: 9: [: foo:
> unexpected operator | dash$ [ 'foo' = 'foo' ] && echo true | true |
> dash$ [ '' = '' ] && echo true | true
>
Ah, that is new to me. Thanks for pointing it out.
@Jason: Thanks for fixing it.
- René
More information about the Password-Store
mailing list