Re: [fluka-discuss]: fff line 119 warning fix

From: Serban Udrea <s.udrea_at_gsi.de>
Date: Fri, 22 Mar 2019 11:31:22 +0100

On 3/22/19 10:05 AM, Alfredo Ferrari wrote:
> Dear Angel
>
> that solution works only on the distribution you are using (Ubuntu with dash as
> default shell?). It would give an error on all other Linux distributions based on
> bash...

Hello everybody,

I dare to disagree. I'm using bash and get:

[[ "$TARGET_MACHINE" = "Linux" ] && [ "$FLUFOR" = "g77" ]]
bash: syntax error in conditional expression
bash: syntax error near `]'

but

[ "$TARGET_MACHINE" = "Linux" ] && [ "$FLUFOR" = "g77" ]

works.

Another variation that works is:

[ "$TARGET_MACHINE" = "Linux" -a "$FLUFOR" = "g77" ]

Best regards,
Serban

-- 
Dr. Serban Udrea
Researcher
p-Linac/p-Bar-Target
Phone: +49 6159 71 3356
Fax: +49 6159 71 3099
S.Udrea_at_gsi.de
GSI Helmholtzzentrum für Schwerionenforschung GmbH
Planckstraße 1, 64291 Darmstadt, Germany, www.gsi.de
Commercial Register / Handelsregister: Amtsgericht Darmstadt, HRB 1528
Managing Directors / Geschäftsführung:
Professor Dr. Paolo Giubellino, Ursula Weyrich, Jörg Blaurock
Chairman of the Supervisory Board / Vorsitzender des GSI-Aufsichtsrats:
State Secretary / Staatssekretär Dr. Georg Schütte
__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Fri Mar 22 2019 - 12:31:27 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 22 2019 - 12:31:34 CET