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

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


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...

3 posts / 0 new

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


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.

Leave a Comment

Please sign in to add a comment. Not a member? Join today