|
Bugzilla – Full Text Bug Listing |
| Summary: | Post-install shell problem | ||
|---|---|---|---|
| Product: | [openSUSE] SUSE LINUX 10.0 | Reporter: | Jan Engelhardt <jengelh> |
| Component: | Installation | Assignee: | Marcus Schaefer <ms> |
| Status: | VERIFIED DUPLICATE | QA Contact: | Klaus Kämpf <kkaempf> |
| Severity: | Normal | ||
| Priority: | P5 - None | ||
| Version: | Beta 1 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Found By: | Beta-Customer | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | For reference, here's a screenie | ||
|
Description
Jan Engelhardt
2005-08-09 09:21:29 UTC
Created attachment 45237 [details]
For reference, here's a screenie
I'll check it Marcus this is a bug in YaST2.call script:
--- cut ---
if [ $server_running = 1 ];then
sleep 1 && kill $xserver_pid
while kill -0 $xserver_pid 2>/dev/null ; do
sleep 1
done
fi
--- cut ---
it seems that the $server_running variable is undefined (empty) and bash cannot
handle that.
Debugging Example:
--- y2call.sh ---
#!/bin/bash
if [ $server_running = 1 ];then
echo "1"
fi
--- y2call.sh ---
produces --> ./y2call.sh: line 3: [: =: unary operator expected
Solution (quoting):
--- y2call.sh ---
server_running=1
if [ "$server_running" = "1" ];then
echo "1"
fi
--- y2call.sh ---
produces --> ./y2call.sh
1
And works also with the undefined $server_running variable too
has been fixed yesterday *** This bug has been marked as a duplicate of 100729 *** Rule of thumb: put "" around every var. |