[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] echo and environment variables
From: |
Pierre Gaston |
Subject: |
Re: [Help-bash] echo and environment variables |
Date: |
Thu, 5 Oct 2017 20:33:29 +0300 |
On Thu, Oct 5, 2017 at 8:22 PM, Christof Warlich <address@hidden>
wrote:
> Hi,
>
> I'm a bit surprised: Can anyone tell why
>
> $ xxx=hiho echo $xxx # xxx is only set for the current command
>
> prints an empty line, while
>
> $ xxx=hiho; echo $xxx; unset xxx # please note the semicolon!
>
> prints
>
> hiho
>
> as expected?
>
> see http://mywiki.wooledge.org/BashFAQ/104