See the Scripting with wsadmin page
IBM supposes that /bin/sh is a bash shell, and in all the shell scripts it uses bash specific syntax, but invoking them
via #!/bin/sh .
To fix the issue you should:
/bin/sh from dash (the Ubuntu standard) to bash:# cd /bin ; rm sh ; ln -s bash sh
launchpad.sh)# cd /bin ; rm sh ; ln -s dash sh
#!/bin/sh with #!/bin/bash in all the script in the WebSphere directory:find . -name \*.sh |\
xargs perl -i.orig -pe 's|^#!/bin/sh|#!/bin/bash|'
You can see the list of existing profiles/instance in the wsinstance.config file