Bug #6141
problem with product path
Start date:
05/02/2014
Due date:
% Done:
0%
Estimated time:
Experiment:
Co-Assignees:
Description
setups has a problem with the product path:
source /product/setups
echo $PRODUCTS
/product
cd /product
source ./setups
echo $PRODUCTS
/products/.:/products
This is bad. You are now listing the same directory twice. I can imagine a scenario where you end up with a number of different relative paths all pointing to the same directory.
FYI: the above problem occurs in bash
History
#1 Updated by Marc Mengel over 6 years ago
Actually, you're putting it in once with a trailing slash, and once without.
It won't put identical ones in twice.
#2 Updated by Lynn Garren over 6 years ago
But it does put functionally identical paths in there. The result should be the same whether I source the file with a full path or a relative path. One can imagine a fairly simple fix along the lines of "cd to the path and do a pwd".
#3 Updated by Marc Mengel over 3 years ago
- Target version set to v5_2_1