[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash Shell Parameter Expansion
From: |
Reuti |
Subject: |
Re: Bash Shell Parameter Expansion |
Date: |
Sat, 9 Oct 2021 15:51:36 +0200 |
> Am 09.10.2021 um 15:43 schrieb tolugboji via <help-bash@gnu.org>:
>
> What is wrong with tho following bash function?
>
> parade-parexpan ()
> {
> ${param:="Hilbert Transform"}
This will be executed after parameter expansion. You need a null-command:
: ${param:="Hilbert Transform"}
-- Reuti
> echo "$param"
> }
>
> I keep getting
>
> Hilbert: command not found
> Hilbert Transform
signature.asc
Description: Message signed with OpenPGP
- Bash Shell Parameter Expansion, tolugboji, 2021/10/09
- Re: Bash Shell Parameter Expansion,
Reuti <=
- Re: Bash Shell Parameter Expansion, Dennis Williamson, 2021/10/09
- Re: Bash Shell Parameter Expansion, Greg Wooledge, 2021/10/09
- Re: Bash Shell Parameter Expansion, Chet Ramey, 2021/10/09
- Bash Shell Parameter Expansion, tolugboji, 2021/10/09
- Re: Bash Shell Parameter Expansion, Kusalananda Kähäri, 2021/10/09
- Bash Shell Parameter Expansion, tolugboji, 2021/10/09
- Re: Bash Shell Parameter Expansion, Greg Wooledge, 2021/10/09