Last Updated: February 25, 2016
·
1.331K
· killme2008

Use /bin/bash instead of /bin/sh

When you shell script run in a trouble like:

[: 10: y: unexpected operator

Try use

#!/bin/bash

instead of

#!/bin/sh

1 Response
Add your response

Can try /usr/bin/env bash

over 1 year ago ·