Quantcast
Channel: Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2583

Missing quotes in tbbvars.sh

$
0
0

Hello,

I am encountering the following problem on tbbvars.sh script of Linux Composer XE

opt64/intel/tbb/bin/tbbvars.sh :

1     get_library_directory(){

2     gcc_version_full=`gcc --version | grep "gcc"| egrep -o " [0-9]+\.[0-9]+\.[0-9]+.*" | sed -e s/^\ //`

3     ...

13    }

The missing quotes around the substitute lead to an error when starting zsh (v5.0.2 from OPENsuse 12.3); bash has does not show the problem.

get_library_directory:1: no matches found: s/^ //

I suggest to use quotes and replace line 2 with

2     gcc_version_full=`gcc --version | grep "gcc"| egrep -o " [0-9]+\.[0-9]+\.[0-9]+.*" | sed -e "s/^\ //"`

ifort (IFORT) 14.0.2 20140120

Copyright (C) 1985-2014 Intel Corporation.  All rights reserved.

Linux 64bit

Kernel version 3.7.10-1.16-desktop

Guido K.


Viewing all articles
Browse latest Browse all 2583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>