Issue Details (XML | Word | Printable)

Key: RIO-214
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dennis Reedy
Reporter: Zsolt Kúti
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Rio

use /bin/sh in unix shell scripts instead of /bin/bash

Created: 20/Jan/10 05:49 PM   Updated: 22/Apr/11 03:43 PM
Component/s: None
Affects Version/s: 4.0 M3
Fix Version/s: 4.0 M3

Time Tracking:
Not Specified


 Description  « Hide
Unix start scripts refer to /bin/bash which is not available by default on some unix systems.
I changed some of them (rio, startall, monitor) to sh. A simple launch revealed no synthactical problems and everything seemed to work with no problem. (This test could not be claimed as exhaustive, though :-)

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Zsolt Kúti added a comment - 20/Jan/10 05:50 PM
I am sorry, I forget to set priority to low...

Dennis Reedy added a comment - 25/Jan/10 10:59 PM
All shell scripts now begin with the sequence #!/bin/sh

Ian Pojman added a comment - 22/Apr/11 03:43 PM
Zsolt, is the problem fixed for you now? Also can you confirm your "/bin/sh -version" does not show that your sh is actually bash? (I wonder because it seems to me that these scripts are using bash specific things like "case/esac" ).

Also FWIW, i think the safest way is "#Unable to render embedded object: File (/usr/bin/env sh" or "#) not found./usr/bin/env bash"


Ian Pojman added a comment - 22/Apr/11 03:43 PM
scratch that, case/esac is in /bin/sh