www.delorie.com/gnu/docs/m4/m4_64.html   search  
 
Buy GNU books!


GNU macro processor

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

12.3 Exit codes

To see whether a shell command succeeded, use sysval:

 
sysval

which expands to the exit status of the last shell command run with syscmd or esyscmd.

 
syscmd(`false')
=>
ifelse(sysval, 0, zero, non-zero)
=>non-zero
syscmd(`true')
=>
sysval
=>0


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003