[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calling a function with a shorter name
From: |
michael-franzese |
Subject: |
Re: Calling a function with a shorter name |
Date: |
Wed, 14 Apr 2021 04:27:20 +0200 |
> Sent: Wednesday, April 14, 2021 at 2:00 PM
> From: "konsolebox" <konsolebox@gmail.com>
> To: michael-franzese@gmx.com
> Cc: "help bash" <help-bash@gnu.org>
> Subject: Re: Calling a function with a shorter name
>
> 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 "$@"; }
yes, I can use your way. Thanks.
> 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
>
>