chiark / gitweb /
dot/profile: Add a new function to export a variable only if it's defined.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 30 May 2020 12:10:32 +0000 (13:10 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 30 May 2020 12:21:33 +0000 (13:21 +0100)
commitdbf146084242e330604cf09e1bf5a1ee89fde7e7
treeb60ebcf76de8e70db05772aad94d2ee25be0eb5f
parent4c085f9edd6e9faec8938cc6b33f7f3175d35015
dot/profile: Add a new function to export a variable only if it's defined.

This is useful for pathish variables: if they're exported then they're
set to empty, which implies the current directory.
dot/profile