[MPlayer-users] Bash vs. sh

Erik Auerswald auerswal at unix-ag.uni-kl.de
Wed Dec 19 14:18:36 CET 2012


Hi,

On 12/19/2012 02:09 PM, Tom Evans wrote:
> On Wed, Dec 19, 2012 at 12:28 PM, Robin Kluth<commi1993 at gmail.com>  wrote:
>>  [...]
>> Okay, so I made some tests:
>>
>> If I change the script as follows:
>>
>> #!/bin/sh
>>
>> and execute it via:
>>
>> :# sh test.sh
>>
>> all is working great!, Tried this several times, and all files seem ok!
>>
>>
>> Went back to bash:
>>
>> #!/bin/bash
>> :# bash test.sh
>>
>> And again randomly wrong output files!
>>  [...]
>
> I thought on linux, sh and bash were the same thing?

Some distributions changed to dash as /bin/sh to improve boot speed. Use 
"ls -l /bin/sh" to check your system.

> Run both variants
> with -x and get a full log of what happens. If you still don't see any
> difference, try strace'ing the shell script.

HTH,
Erik


More information about the MPlayer-users mailing list