Source command stopped working

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
Ernie Pantuso
Level 2
Level 2
Posts: 62
Joined: Tue Jun 26, 2012 11:46 am

Source command stopped working

Post by Ernie Pantuso »

This is so weird... when I try to run

Code: Select all

source ./.aliases
or

Code: Select all

source ./.bashrc
I get

Code: Select all

me@box ~ > source ./.bashrc
-rw-r--r-- 1 root root 77071 Nov 15  2021 /usr/share/bash-completion/bash_completion

The cursor sits at that blank line - like it's waiting for me to enter something. Just sits there until I press Ctrl+C. No idea what changed.
Last edited by LockBot on Mon Aug 14, 2023 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29614
Joined: Wed Jul 06, 2011 3:58 am

Re: Source command stopped working

Post by xenopeek »

What does type -a source say? It should say it's a shell builtin.
Image
Ernie Pantuso
Level 2
Level 2
Posts: 62
Joined: Tue Jun 26, 2012 11:46 am

Re: Source command stopped working

Post by Ernie Pantuso »

Yes. That's what it says.
New info: every time I launch a terminal/shell, I get prompted for my password. I think there's something in .bashrc or .aliases that's causing this and I think somehow they're related.
Locked

Return to “Scripts & Bash”