Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
4554 Discussions

initialize script of environmental variables of advisor 2020.0.0.604394 (advixe-vars.sh) is not compatible with zsh

yukawa__satoshi
Beginner
247 Views

Hi, I'm using Parallel Studio on the linux. After upgrading to 2020 version, the initialization is failed with my login shell, zsh, 
because the initialize script “advixe-vars.sh” is written in a bash dialect. 

#!/bin/sh

SCRIPT_DIR="$( dirname "$( readlink -e "${BASH_SOURCE[0]}" )" )”  <- wrong line

The situation is same in other stuff like vtune, inspector...

0 Kudos
2 Replies
Ruslan_M_Intel
Employee
247 Views

Hi, are you able to workaround the issue for now? If you aren't please use "$0" instead of "${BASH_SOURCE[0]}".

yukawa__satoshi
Beginner
247 Views

Thanks. I already fixed the issue by replacing "${BASH_SOURCE[0]}" with "${BASH_SOURCE[0]:-$0}". But there are many similar lines in the product. Please fix in future updates.

Reply