help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Why remove the export attribute of $_ every time after a


From: ziyunfei
Subject: Re: [Help-bash] Why remove the export attribute of $_ every time after a simple command is executed
Date: Wed, 9 Sep 2015 09:59:34 +0800

On Sep 8, 2015, at 11:27 PM, Chet Ramey <address@hidden> wrote:
> I see what you mean.  What use case do you have for making it exportable?
> The feature has been around over 25 years, and this is the first time the
> subject has come up.  It's tough to recreate the past, but I imagine the
> rationale was something along the lines that the information is only useful
> in the current shell.

No, I do not have such a use case(export $_ to a builtin command), I just 
wonder if there is a particular reason for that, and now I know the answer. 
Thanks! 




reply via email to

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