Open link
net_open_link¶
Open a URL in the default browser using the platform opener. A thin wrapper around open() that validates the argument looks like a URL.
Example¶
net_open_link "https://example.com"
net_open_link "http://localhost:8080"
Arguments¶
- $1 (string): URL to open (must begin with a scheme, e.g. https://)
Exit codes¶
- 0: Opened; 1 Invalid URL or no opener; 2 Missing argument