What is a hyphen beside a shell variable

I saw in some of our scripts that there is a hyphen attached to a shell variable. For example:

if[ -z ${X-} ]

What does this hyphen symbol beside the variable do here.
I cannot find any documentation online for this.


Source: shell

Leave a Reply