Project

General

Profile

Bug #5731

setups script fails in zsh

Added by Paul Russo over 5 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
03/20/2014
Due date:
% Done:

0%

Estimated time:
Experiment:
Duration:

Description

  1. 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
  1. value of PRODUCTS
    [russo@cluck]~/work% echo $PRODUCTS
    /products
  1. 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)
  1. 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"

History

#1 Updated by Marc Mengel over 5 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.

#2 Updated by Marc Mengel over 5 years ago

  • Status changed from New to Accepted

#3 Updated by Marc Mengel over 2 years ago

  • Status changed from Accepted to Resolved

#4 Updated by Marc Mengel over 2 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF