Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4974 Discussions

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

yukawa__satoshi
Beginner
799 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
799 Views

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

0 Kudos
yukawa__satoshi
Beginner
799 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.

0 Kudos
Reply