In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you "how to use the return command in Linux". The content is simple and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn how to use the return command in Linux.
Linux common command return command causes the shell function to exit and return a numeric value. If no value of n is specified, it defaults to the return status of the last command of the function.
Return exits from the function and returns a numeric value.
Summary return [n] Parameter n (optional): integer.
The return value is the value of the parameter n you specify. If you specify a parameter greater than 255 or less than 0, the return value will always be between 0 and 255 by adding or minus 256.
Executing a return statement outside the function returns a failure.
Example #! / usr/bin/env bash # defines a function example () {return 259} # that returns a value greater than 255.Execution function example # displays 3 echo $? Note that this command is a bash built-in command. For help, please see the help command.
The above is all the contents of the article "how to use return commands in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.