0

I'm trying the fish shell, and it seems to run some functions I've defined in it's config file when I open a new fish tab. For example, if I have this function:

function foo
cd ~/
end

fish will go into an infinite loop as it constantly cd's into my user directory and sources the file. But if I have this:

function foo
ls
end

fish won't show me the output of ls. What is going on?

Barett
  • 5,826
  • 6
  • 51
  • 55
Vlad the Impala
  • 15,572
  • 16
  • 81
  • 124
  • I saved your foo function and both of them work for me. maybe your promblem is with `ls` fuction. – aliva Jun 10 '12 at 17:40

1 Answers1

1

you may have defined foo as a function and it creates a infinte loop in someway. try this

function foo
    command ls
end
aliva
  • 5,450
  • 1
  • 33
  • 44