http://www.aros.orgAROS-ExecAROS-Exec ArchivesPower2People

Home

English

Česky

Deutsch

Ελληυικά

Français

Italiano

Nederlands

Polski

Português

Русский

Español

Suomi

Svenska


Neues

Archiv

Einleitung

Status
Screenshots
Portierungen
Lizens

Download


Dokumentation

Benutzer
Installation
Benutzung
Shell
Anwendungen
FAQ
Entwickler
Mitwirken
Roadmap
Fehlermeldung
Arbeiten mit Subversion
Kompilierung
Anwendungs Entwicklungs Handbuch
Zune Anwendungs Entwicklungs Handbuch
System Entwicklungs Handbuch
Debugging Handbuch
Referenz
Spezifikationen
Benutzeroberflächen Richtlinien
Dokumentierung
Portierung
Übersetzung
Zusammenfassungen
Links

Kontakt

Mailinglisten
IRC-Kanäle

Danksagung

Acknowledgements


Bilder

Entwickler
Entwicklertreffen

Sponsoren

Verlinkung

Links

Get AROS Research Operating System at SourceForge.net. Fast, secure and Free Open Source software downloads

FailAt

Index Prev Next


Name

FailAt

Format

FailAt <limit>

Synopsis

RCLIM/N

Function

FailAt sets the return code limit of the current shell script. If
any command returns with a failure code of this value or higher
the script shall abort.

Common failure codes are:
    0   - No error
    5   - Warning
    10  - Error
    20  - Failure

The normal value for the return code limit is 10.

Example

If we have a script with the commands

    Copy RAM:SomeFile DF0:
    Echo "Done!"

and the file RAM:SomeFile does not exist, the Copy command will
return with:

    Copy: object not found
    Copy: returned with error code 20

and the script will abort. However if you include the command

    FailAt 21

then the script will complete since the return code from Copy is
less than the return code limit.

Copyright © 1995-2009, The AROS Development Team. All rights reserved.
Amiga®, AmigaOS®, Workbench und Intuition sind eingetragene Warenzeichen von Amiga Inc. Alle anderen Warenzeichen gehören dem jeweiligen Besitzer.