neofetch icon indicating copy to clipboard operation
neofetch copied to clipboard

Running ". neofetch" command adds a penguin to image each successive time.

Open pkgodara opened this issue 9 years ago • 8 comments

I ran command ". neofetch" from terminal in my home directory ~.It adds an penguin each successive time I run it on same terminal(If i change terminal it starts from begining). I am using ubuntu 16.04.1 LTS. But "neofetch" shows correct output each time.

output1.txt : for first terminal output2.txt : for second terminal

output1.txt output2.txt

neofetchlog : http://pastebin.com/9Wpz5SCK

pkgodara avatar Dec 30 '16 09:12 pkgodara

Sorry, I'm a little confused, can I see a screenshot?

dylanaraps avatar Dec 30 '16 10:12 dylanaraps

It seems I can reproduce this, however there are certain conditions.

You need to run bash first.

This is when I tried to run . neofetch in my default shell.

This is when I tried to run . neofetch in bash.

However, yeah. I don't understand why the use of . neofetch instead of ./neofetch or neofetch normally.

konimex avatar Dec 30 '16 11:12 konimex

Yes, I am using it in Bash(default for ubuntu) as shown by @konimex . Do you still have any confusion, I can add screenshot, @dylanaraps

pkgodara avatar Dec 30 '16 11:12 pkgodara

I still can't reproduce this.

What I don't understand is why you're trying to launch neofetch like this.

dylanaraps avatar Dec 30 '16 11:12 dylanaraps

I also need a shell & linux expert here. :) I don't know why I remembered running shell scripts using this way(bad luck),I was just testing it and ran . neofetch in place of ./neofetch (didn't used till a long time, forgot actual command), It looked like working , so reran after some time and found that. Now coming again , I googled it, see http://askubuntu.com/questions/38661/how-do-i-run-sh-files . See third comment to first answer. "Actually, you can use . /path/to/yourscript.sh if the script have to set up some environment variables". Since we didn't specified path, it looked into /usr/bin/ as long as I can observe(don't know why).

pkgodara avatar Dec 30 '16 11:12 pkgodara

See this : I ran . vim pk@PK:~$ . vim bash: .: /usr/bin/vim: cannot execute binary file

pkgodara avatar Dec 30 '16 11:12 pkgodara

Well, you aren't supposed to run vim that way because vim is not a shell script.

Also, using . /path/to/script apparently runs the script and overrides the environment variable, as shown in my 2nd asciinema, causing the Tux ASCII to appear.

As Dylan said earlier, you aren't supposed to run neofetch, (or any programs, really) that way.

konimex avatar Dec 30 '16 11:12 konimex

Ok, Thanks, I ran . vim just to check from where it is trying to execute this. Anyways, thanks for the info.

pkgodara avatar Dec 30 '16 11:12 pkgodara