Skip to content
Nat! edited this page Jan 10, 2024 · 1 revision

Dump all values set by mulle-bashfunctions:

#! /usr/bin/env mulle-bash

all_vars()
{
   (set -o posix ; set | sort)
}

all_envs=`printenv`

.foreachline variable in `all_vars`
.do
    key="${variable%%=*}"
    r_escaped_grep_pattern "${key}"
    if grep -E -q "^${RVAL}=" <<< "${all_envs}"
    then
       .continue
    fi    
    case "${key}" in 
       C_*|MULLE_*)
          printf "%s\n" "${variable}"
       ;;
    esac
.done
Clone this wiki locally