Search Results

Search: Posts Made By: gjws
4,636
Posted By Scrutinizer
That is the exact problem! The #! needs to be the...
That is the exact problem! The #! needs to be the exact first two characters. Otherwise it is a comment and it gets ignored...
So therefore the default shell got called instead which is /bin/sh...
4,636
Posted By sea
Was just going to edit, but since its a new page...
Was just going to edit, but since its a new page i'll do a new post.

What i've forgotten to add was this, use quotes when checking for empty string.
[ -z "$1" ] && ...

That way it will not...
4,636
Posted By sea
Try using [ expr ] instead of [[ expr ]]. Just...
Try using [ expr ] instead of [[ expr ]].
Just had the same thing when running a script.
2,673
Posted By Scrutinizer
The script using #!/bin/sh whose test builtin...
The script using #!/bin/sh whose test builtin probably does not know -nt (I presume /bin/sh points to dash). Try using #!/bin/bash instead..
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 07:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy