From 8b897851facaa177e2346e0d97fcba7411dfc0aa Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 27 Nov 2025 12:35:52 -0500 Subject: Update `setenv()` to take an optional value, also bugfix for `setenv()` returning a value. --- man/man3/tomo-setenv.3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'man') diff --git a/man/man3/tomo-setenv.3 b/man/man3/tomo-setenv.3 index a9ed528d..faa6a662 100644 --- a/man/man3/tomo-setenv.3 +++ b/man/man3/tomo-setenv.3 @@ -2,14 +2,14 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH setenv 3 2025-05-17 "Tomo man-pages" +.TH setenv 3 2025-11-27 "Tomo man-pages" .SH NAME setenv \- set an environment variable .SH LIBRARY Tomo Standard Library .SH SYNOPSIS .nf -.BI setenv\ :\ func(name:\ Text,\ value:\ Text\ ->\ Void) +.BI setenv\ :\ func(name:\ Text,\ value:\ Text?\ ->\ Void) .fi .SH DESCRIPTION Sets an environment variable. @@ -23,7 +23,7 @@ lb lb lbx lb l l l l. Name Type Description Default name Text The name of the environment variable to set. - -value Text The new value of the environment variable. - +value Text? The new value of the environment variable. If `none`, then the environment variable will be unset. - .TE .SH RETURN Nothing. -- cgit v1.2.3