0

My old xournal is 0.4.5, which is /usr/bin/xournal. I just installed a new version 0.4.8 by compiling from source to /usr/local/bin/xournal.

When I call xournal directly from the terminal, it is the old version.

$ xournal

When I call /usr/local/bin/xournal, it is the new version.

$ /usr/local/bin/xournal
  1. But which shows that xournal is /usr/local/bin/xournal

    $ which xournal
    /usr/local/bin/xournal
    

    Isn't which supposed to show the actual path when calling xournal?

  2. My PATH puts /usr/local/bin before /usr/bin, so why doesn't calling xournal call /usr/local/bin/xournal but /usr/bin/xournal?

    $ echo $PATH
    ”/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games”
    

Thanks.

Tim
  • 101,790

1 Answers1

2

If you just installed it it's likely that your shell has cached the old path. Use:

hash -r

to clear the command hash table and then try running the command again.

Michael Homer
  • 76,565