help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling a function with a shorter name


From: konsolebox
Subject: Re: Calling a function with a shorter name
Date: Wed, 14 Apr 2021 10:00:34 +0800

On Wed, Apr 14, 2021 at 9:52 AM <michael-franzese@gmx.com> wrote:
> but I get "command not found" when I call the shorter version.

Better just use a function:

ct() { chtcolr "$@"; }

Or if you insist you can enable expand_aliases:

shopt -s expand_aliases
alias ct='chtcolr'

Option is only enabled by default in interactive mode.

-- 
konsolebox



reply via email to

[Prev in Thread] Current Thread [Next in Thread]