[Thread Prev][Thread Next][Index]

Re: [ferret_users] BUG REPORT: Exiting from a script.



Hi Russ,
Thank you for the report.  We'll certainly check into this.

Ansley

On 9/10/2012 10:59 PM, Russ Fiedler wrote:
Hi,

http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/commands-reference/EXIT

Indicates that we should be able to exit a script to the next higher
level either via the general command EXIT or with the qualifier
EXIT/SCRIPT

However if executed within an IF statement with no ENDIF using EXIT
without a qualifier fails. IF blocks work as expected.

i.e.

!this fails to exit

if 1 then exit

!these work


if 1 then exit endif

if 1 then exit/script

if 1 then
exit
endif

if 1 then
exit/script
endif

---------------

russ-hf% ferret -nojnl
         NOAA/PMEL TMAP
         FERRET v6.82
         Linux 2.6.32-279.1.1.el6.x86_64 64-bit - 08/03/12
         11-Sep-12 15:55
--------------


Russ



[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement