$result

From Scriptwiki
Revision as of 11:51, 6 April 2008 by Albie (talk | contribs) (forgot wiki links)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Stores the value returned to a calling routine by the /return command.

Example

alias a {
  b
  echo -ag Returned value from /b command: $result
}
alias b 
  return buzzy B
}

With the above script loaded when we issue the /a alias, we'll get echo'd

Returned value from /b command: buzzy B

See Also