| Summary: | Shell scripts are not posix compliant and of bad quality | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Stefan Fleiter <stefan.fleiter> | ||||||
| Component: | TPTP | Assignee: | Bing Xu <xubing> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P1 | CC: | jcayne, jkubasta, nmehrega, samwai | ||||||
| Version: | unspecified | Keywords: | plan | ||||||
| Target Milestone: | --- | Flags: | jcayne:
review+
|
||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | closed460 | ||||||||
| Attachments: |
|
||||||||
|
Description
Stefan Fleiter
This bug has the potential to cause the Agent Controller not to work for shell implementations which are not bash. It was already reported in the newsgoup eclipse.tptp Message-ID: <f7n84b$4f9$1@build.eclipse.org> Why is this not targeted for 4.4.1? Samson, Navid, Please review the proposed change. If containable in the 441 timeframe (end of next week with reviews and smoke test), I will retarget Created attachment 90906 [details]
Patch
I didn't make the following change because 175696 has fixed it. >.... >-if [ x$TEMP == x ]; then >+if [ -z $TEMP ]; then > export TEMP=/tmp > fi >.... Problem with SetConfig.sh that it needs Java in PATH has been raised as a separate bug 205637. Joel, can you review my change to the scripts. Bing, The -z change looks fine. The != checks could be updated to use -ne to match this change for $1 and $RUNNING. Consider using `dirname $0` instead to be consistent with the rest of the script's command substitution, as well as working across multiple shells. Also look at updating the comment preceding the call as it is no longer required to be in the bin directory. Created attachment 91000 [details]
New patch with Joel's correction
Joel, can you review the new changes. If OK please check them in. Thanks.
Looks good. Patch checked into HEAD. Patch in CVS As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open. |