[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] ${var:?message} customization
From: |
Matias A. Fonzo |
Subject: |
[Help-bash] ${var:?message} customization |
Date: |
Wed, 13 May 2015 20:54:09 -0300 |
Hi there,
Normally, "${var:?'message'}" display error if null or unset if
'message' is omitted. But if it is not, a particular message can be
included, in any case, shows (e.g):
myscript: line 2: var: parameter null or not set
My question is, there is a way to print only the message? (removing
myscript: line number: var:)
- [Help-bash] ${var:?message} customization,
Matias A. Fonzo <=
- Re: [Help-bash] ${var:?message} customization, Stephane Chazelas, 2015/05/14
- Re: [Help-bash] ${var:?message} customization, Greg Wooledge, 2015/05/14
- Re: [Help-bash] ${var:?message} customization, Dan Douglas, 2015/05/14
- Re: [Help-bash] ${var:?message} customization, Stephane Chazelas, 2015/05/15
- Re: [Help-bash] ${var:?message} customization, Dan Douglas, 2015/05/15