I have seen a line of shell script as follows:
What does this mean? I don't know what 3:-false means.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
No, it's nothing about array, it's a default value in parameter substitution.
$3 is not set, set
false, otherwise, set it to
Take a look at this article, for me it was really useful: