[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: function in an executable file that can be sourced or executed
From: |
Greg Wooledge |
Subject: |
Re: function in an executable file that can be sourced or executed |
Date: |
Sun, 5 May 2024 22:20:44 -0400 |
On Sun, May 05, 2024 at 08:59:19PM -0500, Mike McClain wrote:
> with a call at the end like: [ if not sourced ] && net;
> In other words, if ~/bin/net is called from the command line the
> function will be executed?
https://mywiki.wooledge.org/BashFAQ/109