[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Yet another shell function prerequisite!
From: |
Ralf Wildenhues |
Subject: |
Re: [PATCH] Yet another shell function prerequisite! |
Date: |
Mon, 13 Oct 2008 23:00:04 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
* Paolo Bonzini wrote on Mon, Oct 13, 2008 at 07:24:10PM CEST:
> I'd okay with -, but what if unset does not work? I planned to do
> something like
>
> as_lineno=; AS_UNSET([as_lineno])
>
> but that could expand to
>
> as_lineno=; false as_lineno
>
> Do we still care about "old BSD shells, including the Ultrix sh"? How
> old are these?
Let's go with unset. IIRC unset is more portable than ${var:-default}
(and IIRC, where the latter doesn't work, it causes the shell to abort
the script). Having line number information fail if both are borked is
tough luck.
Cheers,
Ralf
- [PATCH] Yet another shell function prerequisite!, Paolo Bonzini, 2008/10/13
- Re: [PATCH] Yet another shell function prerequisite!, Eric Blake, 2008/10/13
- Re: [PATCH] Yet another shell function prerequisite!, Eric Blake, 2008/10/13
- Re: [PATCH] Yet another shell function prerequisite!, Paolo Bonzini, 2008/10/13
- Re: [PATCH] Yet another shell function prerequisite!, Paolo Bonzini, 2008/10/13
- Re: [PATCH] Yet another shell function prerequisite!,
Ralf Wildenhues <=
- Re: [PATCH] Yet another shell function prerequisite!, Paolo Bonzini, 2008/10/14
- Re: [PATCH] Yet another shell function prerequisite!, Paolo Bonzini, 2008/10/14
- Re: [PATCH] Yet another shell function prerequisite!, Eric Blake, 2008/10/14
- Re: [PATCH] Yet another shell function prerequisite!, Eric Blake, 2008/10/14
- Re: [PATCH] Yet another shell function prerequisite!, Eric Blake, 2008/10/14