Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
89 Views

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

0 Kudos
2 Replies
Highlighted
Employee
89 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
Highlighted
89 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