Script problems MorphOS 2.5
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 599 from 2004/11/27
    Hi,

    I try to setup some scripts with someone who did created them to do some processes automatically and unfortunately they do not work under MorphOS 2.5 but do work on an Amiga.

    Is there a difference between Amiga and MorphOS scripting?

    As I really need the scripts if anyone sould help here it would be very welcome! Thanks.

    Here is what happens:

    I copied 2 files to Ram:env one is alled abcd and the other abcdn these are plain text files with "hello" in them.

    Then I entered the following commands into a shell:

    echo a "$abcd" b
    echo a "$abcdn" b
    echo a "*"$abcd*"" b
    echo a "*"$abcdn*"" b


    here are the shell output:

    >New Shell process 3
    >Ram Disk:> echo a "$abcd" b
    >a hello"" b


    BUG #1 : this should output:

    a hello b


    >Ram Disk:> echo a "$abcdn" b
    >a hello"" b

    BUG #2 : this should output:

    a hello b

    >Ram Disk:> echo a "*"$abcd*"" b
    >a " hello"*"" b

    BUG #3 : this should output:

    a "hello" b

    >Ram Disk:> echo a "*"$abcdn*"" b
    >a " hello"*"" b


    BUG #4 : this should output:

    a "hello" b
  • »30.09.10 - 05:19
    Profile Visit Website
  • MorphOS Developer
    Piru
    Posts: 587 from 2003/2/24
    From: finland, the l...
    It works the same with AmigaOS 3.1 shell (shell 40.2 (03/04/93)).

    Clearly doing something smarter would be more useful, but there isn't trivial solution to this issue, at least not one I can think of at the moment. I need to give this some thought.
  • »30.09.10 - 08:29
    Profile