 Today, we're just going to have a quick look again at functions and to determine what function you are currently in. And I think I misspoke in a previous video. Let me go ahead and show you this script that I wrote up. This is going to be very quick. So I have a script called funk.sh. It's a bash script and in previous videos, our function was also called funk. But just to make things a little clearer, I renamed my function to myfunk in here. Again, it doesn't matter what you call it. So here we're calling this script and here we're using the variable $0, which I think I accidentally said in a previous video that $0 will tell you the name of your function. When you're inside a function, it doesn't. It tells you the name of this script, same as it would outside of the function. If you want to get the name of the function you're currently in, you can use the funk name, all capital $funkname. Let's go ahead and save this. It's already made executable from previous videos. I'll just dot slash that script and you can see the script is and it tells me what script I'm running, but it tells me the function is and that's the function I'm running. If we go back in here, let me go ahead and just go ahead and make two functions. We'll call funk1 and funk2 and we will call both and now run our script and you can see here it does recognize which function it's in, whether it's function 1 or 2 and again it doesn't matter what order you call them in, so switch that around. It knows by the variable of dollar sign capital funkname. That is a special variable that will tell you what function you're currently running. In case you need to display that or check it for some reason in your script. Thank you for watching. As always, this is part of a series, if I didn't mention that earlier. In the description of this video there should be a link to a full playlist. I hope you enjoyed it. If you did enjoy this video, think about becoming a supporter, patreon.com forward slash mail x1000. If you can't support financially, be sure to like, subscribe, share and comment on this video. That helps me out a lot. As always, I hope that you have a great day.