!******************************************************************************!
! Test the adding of a command to the end of the commands.cnf
!
! Arguments: None
!
! Steps to reproduce problem in NEXTOPT
!
! xmstart
! xm
! xmopt dropt $NMROOT/nxm/sys/test/nmopts/nxm/dropt
! xmp +dropt
! xmopt nxm $NMROOT/nxm/sys
! xmp +nxm
! nm/on/bg/id=999
! nm option dropt
! nm ZZLAST    --- or --- nm menu opt=dropt
!
! @bug      2358
! @author:  J Bauer
! @version: $Id: test_path_dict.mm,v 1.6 2014/06/02 19:51:10 adw Exp $
!******************************************************************************!
startmacro
  ! Points to test option tree
  FILE NAME optDir (^{env.nmroot},nxm,sys,test,nmopts,nxm,mytestopt1) "" ""
  res savedPath OPT.PATH  ! save to revert back later
  OPT mytestopt1 optDir
  PATH set SYS    ! path needs to be simple to show issue, if it is not fixed
  PATH add mytestopt1
  PATH redo

  res expVal "Expected Value to see that command executed"
  ZZLAST myres expVal
  assert/text="^reg.main.name: was able to run ZZLAST command" myres eqs expVal

  path SET ^savedPath
  OPT/DELETE mytestopt1

endmacro

!******************************************************************************!
procedure processException m:emsg
  assert/text="^reg.main.name: got exception: ^{emsg.data}" "FALSE"
return
