[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Exporting variables in two steps
From: |
Chris Down |
Subject: |
Re: [Help-bash] Exporting variables in two steps |
Date: |
Wed, 26 Jun 2013 13:38:53 +0800 |
On 26 June 2013 12:33, address@hidden <address@hidden> wrote:
> I was reading /etc/profile and found out that most environment variables are
> set in two steps.
>
> HISTSIZE=1000
> export HISTSIZE
>
> Is this done simply for readability or is there some advantage over setting
> this simply as
> export HISTSIZE=1000
> ?
export var=foo is not portable to all shells that might read
/etc/profile. For bash, there is no difference.