Am 22.02.15 um 00:29 schrieb Rüdiger, Christoph:>> +ptxd_make_log() {(
>> + # stdout only
>> + exec {PTXDIST_FD_STDOUT}>&1
>> + # stderr only
>> + exec {PTXDIST_FD_STDERR}>&2
>>
>>
>> missing $
>> try:
>> exec ${PTXDIST_FD_STDOUT}>&1
>> exec ${PTXDIST_FD_STDERR}>&2
>
>
> That was my first impression as well. A simple typing error. But why is it
> running in GNU bash but not in Apple's bash?
I'm not quite sure, if this is clear or not, but the simple dollar sign is not
the fix. If adding the dollar sign to convert the brace expansions to parameter
expansions, the next error is in the last line of the function:
> ${logout}: ambiguous redirect
So I'm still searching for explanations on why there are brace expansions and
why the work in Ubuntu's bash, but not in Apple's bash.
Best regards,
Christoph
P.S.: Sorry for the double post. It's late. Maybe too late.
--
ThyssenKrupp Elevator Innovation GmbH
PDC Neuhausen
TKEI Elevator Control
Bernhaeuser Str. 45
73765 Neuhausen, Germany
Phone +49 7158 12-2615
[email protected]
Company domicile: Essen Commercial register: Essen HRB 20 839
Postal address: ThyssenKrupp Allee 1, 45143 Essen, Germany
Executive Board: Gerhard Thumm, Katrin Huenger, Philippe Choleau
--
ptxdist mailing list
[email protected]
--
ptxdist mailing list
[email protected]