help-bash
[Top][All Lists]
Advanced

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

Re: Calling function from various files


From: Eduardo Bustamante
Subject: Re: Calling function from various files
Date: Mon, 12 Apr 2021 19:57:36 -0700

On Mon, Apr 12, 2021 at 7:49 PM <michael-franzese@gmx.com> wrote:
>(...)
> Here is the code
>
> ./colr-tools.sh
> termi-colr-wheel ()
>   { declare -rA tis=([cols]="$(tput cols)")
>     echo "* ${tis[cols]} }

This isn't valid Bash code, the curly braces are misplaced.

> ./fractr-test/colr-fractr.sh
> scout-terminfo-colours {echo "** ${tis[cols]}"}

This isn't valid either.

Could you re-send your code, and make sure that it's properly
formatted? Also, do you mind explaining what you expect to see and
why?

It's easier to help you with your problem if we take these obstacles
out of the way.



reply via email to

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