[Coco] OS9 Shell 2.1 else not working.

coco at jechar.ca coco at jechar.ca
Sun Jun 28 13:01:14 EDT 2020


So I write a test script:

    echo testing
    if -w /dd/it
      then
        echo found it
      else
        echo you do not have it
    endif
    echo done

When I test it:

    {Term|02}/DD:test
    testing
    done

    {Term|02}/DD:echo >it
    {Term|02}/DD:test
    testing
    found it
    done

    I do not get the message

    you do not have it

    which makes me think that the
    else
    command does not work in shell 2.1

    but maybe I am making some other mistake.

    Charlie



More information about the Coco mailing list