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

From: Alfredo Ferrari <alfredo.ferrari_at_cern.ch>
Date: Fri, 22 Mar 2019 10:05:03 +0100

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.

                     Alfredo


+----------------------------------------------------------------------+
| Alfredo Ferrari || Tel.: +41.22.76.76119 |
| CERN-EN/STI || Fax.: +41.22.76.69474 |
| 1211 Geneva 23 || e-mail: Alfredo.Ferrari_at_cern.ch |
| Switzerland || |
+----------------------------------------------------------------------+

On Thu, 21 Mar 2019, Angel wrote:

> Dear FLUKA users and experts,
>
> With a colleague of mine, we noticed that when compiling mgdraw.f by using
> the command:
> $FLUPRO/flutil/fff mgdraw.f
>
> we were getting the following warning:
> /usr/local/FLUKA/flutil/fff: 119: /usr/local/FLUKA/flutil/fff: [[: not found
>
> The issue obviously was with the syntax on line 119 and changing it from:
> if [[ "$TARGET_MACHINE" = "Linux" ] && [ "$FLUFOR" = "g77" ]] ; then
>
> to:
>
> if [ "$TARGET_MACHINE" = "Linux" ] && [ "$FLUFOR" = "g77" ] ; then
>
> seems to resolve the warning.
>
> Best regards,
> Angel
>
> --
>

__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Fri Mar 22 2019 - 11:23:43 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 22 2019 - 11:23:45 CET