#4 Mysterious message that script file does not exist

open
win-bash (11)
5
2006-11-29
2006-11-29
Arjen Markus
No

I try to run a script file like this:

> win-bash myscript.sh

but win-bash (version 0.6x) does not accept this -
it complains that the file does not exist. Even if I
use absolute or relative paths (in Windows or UNIX
style) the message remains the same

Discussion

  • Joerg Matysiak
    Joerg Matysiak
    2006-11-29

    Logged In: YES
    user_id=623023
    Originator: NO

    Sorry, I can't reproduce the problem,
    see attached log on how I called win-bash to execute the script.

    If you can't solve the problem, please send me the exact error
    message you get from the win-bash.exe.

    ==============================================================
    D:\home\joerg\development\win-bash>win-bash.exe my_script.sh
    blabla

    D:\home\joerg\development\win-bash>more < my_script.sh
    #!/bin/sh

    echo "blabla"

    exit

    D:\home\joerg\development\win-bash>win-bash -version
    GNU win-bash, version win-bash_0.6.1(0)
    ==============================================================

     
  • Arjen Markus
    Arjen Markus
    2006-11-29

    Logged In: YES
    user_id=400048
    Originator: YES

    Somebody in the project I want to use win-bash for came up with the solution:
    win-bash does run the script, but in the script it encounters a command or
    an executable file it can not run.

    The message was a trifle misleading (or it was late for me to be still working),
    so it looked as if it complained about the script itself, rather than something
    inside the script.

    Perhaps my mistake could be turned into a feature request: additional information
    in this type of error messages (which file/command was the culprit, at which line
    did it occur).