setups script fails in zsh
- we are running zsh
[russo@cluck]~/work% ps f
PID TTY STAT TIME COMMAND
58157 pts/50 Ss+ 0:00 -bash
57449 pts/34 Ss 0:00 -bash
58217 pts/34 S 0:00 \_ zsh
58246 pts/34 R+ 0:00 \_ ps f
- value of PRODUCTS
[russo@cluck]~/work% echo $PRODUCTS
- see problem
[russo@cluck]~/work% source /products/setups
ERROR: Product 'ups v5_0_5 -f Linux64bit+2.6-2.12 -z /products' (with qualifiers ''), has no current chain (or may not exist)
- see that error message is wrong
[russo@cluck]~/work% ups list -aK+ ups v5_0_5 -f Linux64bit+2.6-2.12 -z /products
"ups" "v5_0_5" "Linux64bit+2.6-2.12" "" "current"
#1 Updated by Marc Mengel over 6 years ago
This appears to be because of the goofy zsh SH_WORD_SPLIT behavior; it is grouping the
'ups v5_0_5 -f Linux64bit+2.6-2.12 -z /products' together as a product name.
I'm adding a patch to "setopt SH_WORD_SPLIT", to make zsh behave like the other shells.
Otherwise other setup file actions may break, as well.