Page 1 of 1

Source not found

Posted: 2019/10/16 20:34:54
by robertvadra49
Hey everyone,
I just got CentOS 6.10 minimal image installed, and ran into an issue as,

[sleo@localhost ~]$ source ~/.bashrc
source: command not found
Below is the sh I was running,
[sleo@localhost ~]$ ls -l `which sh`
lrwxrwxrwx. 1 root root 4 Jul 29 21:55 /bin/sh -> bash
But if I su as root, it can run well.

Inputs here will be appreciated.

Re: Source not found

Posted: 2019/10/16 21:36:14
by TrevorH
bash behaves differently depending on whether it is invoked as /bin/bash or /bin/sh. Try using bash not sh.