Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
How do the return syntax looks like ?
Answer

Syntax

  • The return command causes a function to exit with the return value specified by N and syntax is:
return N
  • If N is not specified, the return status is that of the last command.
  • The return command terminates the function.
  • The return command is not necessary when the return value is that of the last command executed.

Question
How do the return syntax looks like ?
Answer
?

Question
How do the return syntax looks like ?
Answer

Syntax

  • The return command causes a function to exit with the return value specified by N and syntax is:
return N
  • If N is not specified, the return status is that of the last command.
  • The return command terminates the function.
  • The return command is not necessary when the return value is that of the last command executed.
If you want to change selection, open document below and click on "Move attachment"

Returning from a function - Linux Shell Scripting Tutorial - A Beginner's handbook
utput ƒ(x). In computer a shell function name can take an input, $1 and return back the value (true or false) to the script. In other words, you can return from a function with an exit status . <span>Syntax The return command causes a function to exit with the return value specified by N and syntax is: return N If N is not specified, the return status is that of the last command. The return command terminates the function. The return command is not necessary when the return value is that of the last command executed. Example Create a shell script called isroot.sh as follows: #!/bin/bash # version 1.0 # Purpose: Determine if current user is root or not is_root_user(){ [ $(id -u) -eq 0 ] } # invoke th

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.