Closed nnzv closed 2 years ago
That's because you call your self declared function within it self, resulting in a loop. Declare the inner ls
with full path or as
fn ls { `{which ls} -FC $* }
Oh, true. But should we call it a loop? Just breaks. Thank you, though.
[Edit] Here's another way to do it:
fn ls { builtin ls -FC $* }
Description
Set a command as function will break current session. No logs, it's just like calling
exit
.Reproduce
fn ls { ls -FC $* }
ls
Expected behavior
Overwrite the command itself, but adding parameters.
Environment
OS: Gentoo Linux Version: rc-1.7.4-r2