[Top][All Lists]

[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:)

reply via email to

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