Can somebody tell me how to append to PATH variable in Linux? I have already checked a similar question (puppet - How do I append to path variable?) but that answers for all new login shells whereas I am considered about the current session as well.
I have already tried:
exec { 'export-path':
command => "/bin/bash -c 'export PATH=/path/to/custom/bin:$PATH'",
}