help-bash
[Top][All Lists]
Advanced

[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

Attachment: signature.asc
Description: Message signed with OpenPGP


reply via email to

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