return
Verified for current stable LTS
Return Command: Specify Function Return Value
Use for specify function return value with Return. Exact CLI syntax to specify function return value using Return.
When to use this: Use for specify function return value with Return.
Command Syntax
<func_name>() { return <exit_code>; } <func_name>() `{ return <exit_code>; `} Live Command Builder
Final Command
<func_name>() { return <exit_code>; } Command Breakdown
<func_name>() is the base executable for this command.
FAQ
Purpose: Exact syntax to specify function return value using Return.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.