|
Bugzilla – Full Text Bug Listing |
| Summary: | YaST2 bash autocompletion script error in posix mode (when POSIXLY_CORRECT is set) | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.1 | Reporter: | Michal Kubeček <mike> |
| Component: | YaST2 | Assignee: | Jiri Srain <jsrain> |
| Status: | RESOLVED FIXED | QA Contact: | Jiri Srain <jsrain> |
| Severity: | Minor | ||
| Priority: | P5 - None | CC: | mvidner |
| Version: | Final | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | openSUSE 11.1 | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Michal Kubeček
2009-05-18 17:06:32 UTC
Jiri, the script is in yast2 base package. I'm aware of the bash completion script using a "bashism"; I already tried to get rid of it, but failed (I'm not bash geek enough) If you could provide a patch, I will be happy to integrate it, but I was not able to fix it (I don't remember exactly, but I think that I even worked on it together with Martin). Hope you can understand it. What an opportunity to show off my bash-fu! :-)
The construct
while read FOO; do
...
LIST=("${LIST[@]}" "$ITEM")
done < <(bar)
can be replaced by this, as long as ITEMs don't contain whitespace (which is true here):
LIST=(` bar | while read FOO; do
...
echo "$ITEM"
done `)
BTW ($(foo)) cannot be used if foo contains ')' for 'case' statements, therefore (`foo`).
Fixed in SVN r57293, will be in yast2-2.18.16.
|