Fhs env, alias in profile not working

alias in profile variable inside buildFHSUserEnv is not working

profile = ''
  export PATH=$PATH:/usr/lib        # this will work
  alias hello="echo 'hello world'"  # this will not work

In FHSUserEnv, there are a lot of commands that call other commands which finally call your runScript. Try to follow the files from the store (use gf if you use Vim) to get a sense of that. Anyway, that just makes sense due to how FHSUserEnv is implemented.

I found a solution

runScript = "bash --init-file "/etc/profile";