help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How is ${x:-"} parsed?


From: Peng Yu
Subject: How is ${x:-"} parsed?
Date: Sun, 9 May 2021 15:48:07 -0500

I see the following command is expecting something. I don't quite
understand how it is parsed.

$ echo "${x:-"}"
>

Is the second double quote expecting another double quote to pair it?
If so, how to pair it?

Alternatively, wouldn't it better to just print the error at the
second double quote since it should follow the dash character?

-- 
Regards,
Peng



reply via email to

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