[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: misleading error message from variable modifier
From: |
don fong |
Subject: |
Re: misleading error message from variable modifier |
Date: |
Thu, 1 Mar 2018 09:24:29 -0800 |
any feedback on this patch?
On Sat, Feb 24, 2018 at 11:24 AM, Chet Ramey <chet.ramey@case.edu> wrote:
> On 2/23/18 10:20 PM, don fong wrote:
> > hi folks. i'm a bash user, who just noticed a slight anomaly. it has
> > to with the shell variable modifier ${parameter?} . according to the
> > man page, ${X?} should yield an error message and exit if X is unset,
> > otherwise the value of X. in this case,
> >
> > unset X; echo ${X?}
> >
> > i expect to get an error message, and indeed an error message results.
> >
> > bash: X: parameter null or not set
> >
> > but i think the error message is misleading.
>
> Thanks for the report and patch. I'll take a look.
>
> Chet
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
> ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
>
- Re: misleading error message from variable modifier,
don fong <=
- Re: misleading error message from variable modifier, Chet Ramey, 2018/03/01
- Re: misleading error message from variable modifier, don fong, 2018/03/01
- Re: misleading error message from variable modifier, Clark Wang, 2018/03/02
- Re: misleading error message from variable modifier, Chet Ramey, 2018/03/02
- Re: misleading error message from variable modifier, don fong, 2018/03/02
- Re: misleading error message from variable modifier, Chet Ramey, 2018/03/04
- Re: misleading error message from variable modifier, don fong, 2018/03/07
- Re: misleading error message from variable modifier, Chet Ramey, 2018/03/08
- Re: misleading error message from variable modifier, don fong, 2018/03/09
- Re: misleading error message from variable modifier, Chet Ramey, 2018/03/10