I am using a program that takes a "command" as an argument and then adds some helpful wraping around it. Presumably in an effort to be helpful it appears to checks to make sure the command "exists". As far as I can tell this check is something like
which. In my bash shell commands like
export are built in and therefore
which doesn't return anything.
Is there a way to set an environment variable without using a shell builtin.
My thought was to do something like define
set.sh to be
#! /bin/bash export $1
but this seems mildly crazy