On systems like HP-UX or FreeBSD bash is installed in different locations, like /usr/local/bin/bash, so putting
#!/bin/bash
Will result in shell saying "script_name: not found"
Is there any workaround that would make shell script portable?
On systems like HP-UX or FreeBSD bash is installed in different locations, like /usr/local/bin/bash, so putting
#!/bin/bash
Will result in shell saying "script_name: not found"
Is there any workaround that would make shell script portable?