From ee6691458e28d7baf96faae5ba311682512412b5 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Wed, 28 Dec 2016 19:44:25 -0800 Subject: [PATCH] clarify that aliases are not autoloaded Fixes #3612 --- doc_src/index.hdr.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc_src/index.hdr.in b/doc_src/index.hdr.in index a7da811ea..d4e85a299 100644 --- a/doc_src/index.hdr.in +++ b/doc_src/index.hdr.in @@ -240,6 +240,8 @@ There are a few important things that need to be noted about aliases: - If the alias has the same name as the aliased command, it is necessary to prefix the call to the program with `command` in order to tell fish that the function should not call itself, but rather a command with the same name. Failing to do so will cause infinite recursion bugs. +- Autoloading isn't applicable since, by definition, the alias command creates the function at the time it is executed. If you want to defer creation of the function to when it is used simply create a script that uses the function command per the discussion below about autoloading functions. + To easily create a function of this form, you can use the alias command.