On 2014-08-19 9:46 pm, John Vogel wrote:
#!/command/execlineb foreground { exit 122 } import LASTEXITCODE echo $LASTEXITCODEThis just prints a blank line. What part of the concept am I missing here?
This is contrary to the documentation, but it appears to set
the environment variable '?', not LASTEXITCODE:
(execline 1.3.1.1)
execlineb -c 'foreground { exit 122 } printenv' | grep 122
?=122
--
Patrick Mahoney <[email protected]>
