Bug 113813

Summary: /usr/lib/YaST2/startup/common/stage.sh: line 45: .[: syntax error:
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Harald Koenig <koenig>
Component: InstallationAssignee: Marcus Schaefer <ms>
Status: RESOLVED WORKSFORME QA Contact: Klaus Kämpf <kkaempf>
Severity: Normal    
Priority: P5 - None CC: yast2-maintainers
Version: Beta 3   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2start.log

Description Harald Koenig 2005-08-29 11:48:41 UTC
running an update from 9.3 to 10.0 beta-3 via NFS, after switching from CD1 to
CD2 there was the following error message on VC1

   /usr/lib/YaST2/startup/common/stage.sh: line 45: .[: syntax error: operand
expected (error token is ".[")

btw: the ".[" is no typo, I've captured this with "setterm -dump 1"
Comment 1 Marcus Schaefer 2005-08-29 15:49:13 UTC
please send the log: 
 
  /var/log/YaST2/y2start.log 
 
thanks 
Comment 2 Harald Koenig 2005-09-01 16:34:08 UTC
Created attachment 48488 [details]
y2start.log

sorry for the delay. first I replied via email and only today I realized that
this doesn't work at all, 
the "From: bugzilla_noreply@novell.com" is just a black hole...
Comment 3 Marcus Schaefer 2005-09-05 09:46:28 UTC
Hmm the log looks good to me. the scripts will create a stage list 
from the directory: 
 
  /usr/lib/YaST2/startup/Second-Stage/ 
 
can you send me the contents of the directory ? 
ls -la or something similar (all files) 
Comment 4 Harald Koenig 2005-09-05 15:52:21 UTC
(In reply to comment #3)
> Hmm the log looks good to me. the scripts will create a stage list 
> from the directory: 
>  
>   /usr/lib/YaST2/startup/Second-Stage/ 
>  
> can you send me the contents of the directory ? 
> ls -la or something similar (all files) 

drwxr-xr-x  2 root root  149 Sep  3 00:23 .
drwxr-xr-x  7 root root 4096 Sep  3 00:23 ..
-rwxr-xr-x  1 root root  641 Jan 24  2005 S02-logging
-rwxr-xr-x  1 root root  339 Jan 24  2005 S03-autoconf
-rwxr-xr-x  1 root root  490 Mar 29 09:47 S04-language
-rwxr-xr-x  1 root root  238 Mar  7 08:26 S05-config
-rwxr-xr-x  1 root root 1337 Mar  7 08:26 S06-services
-rwxr-xr-x  1 root root 1646 Jun  2 15:02 S07-medium
-rwxr-xr-x  1 root root 1519 Jun  2 15:02 S08-start
-rwxr-xr-x  1 root root  905 Mar  7 08:26 S09-cleanup
Comment 5 Marcus Schaefer 2005-09-05 16:04:27 UTC
Thanks, looks like it should look like  
Harald I cannot reproduce this here on my system and the log you sent  
me looks as well good to me. All stages are called correctly and it  
seems the update process was successfull  
  
The error you reported is the code from the createStageList() function  
which creates an array of stages according to the contents  
of /usr/lib/YaST2/startup/Second-Stage/. If the array is invalid not all 
stages are called and the installation will fail but that doesn't happen 
in your case. The error message provided above appears if the index of 
a bash array is set to an invalid character: For example: 
 
    INDEX=? 
 
    if [ -z ${STAGE_LIST[$INDEX]} ];then 
      echo foo 
    fi  
 
But the directory contents doesn't provide illegal characters or malformed 
files. I'm sorry but it works for me as it should 
Comment 6 Harald Koenig 2005-09-05 16:26:07 UTC
(In reply to comment #5)
> Thanks, looks like it should look like  
> Harald I cannot reproduce this here on my system and the log you sent  
> me looks as well good to me. All stages are called correctly and it  
> seems the update process was successfull  

maybe my update from beta-3 to -4 cleaned up some stuff and/or fixed the problem ?

at least I didn't see the same error anymore, but maybe I have just overseen it
?!  in beta-3 it only was visible on the console VC1, not in any log file...


> But the directory contents doesn't provide illegal characters or malformed 
> files. I'm sorry but it works for me as it should 

it it keeps that way I'm perfectly happy ;-)