Relative Content

Tag Archive for bashshell

What does a trailing dash do in a parameter expansion? [duplicate]

This question already has answers here: What is a hyphen beside a shell variable (1 answer) What does the ‘-‘ (dash) after variable names do here? (3 answers) Closed 8 days ago. I have this code: if [[ ! -z “${ENV_OVERRIDE-}” ]]; then CFG=”some/path/$ENV_OVERRIDE.conf” fi It seems to be doing the same thing without the […]

What does a trailing dash do in a parameter expansion? [duplicate]

This question already has answers here: What is a hyphen beside a shell variable (1 answer) What does the ‘-‘ (dash) after variable names do here? (3 answers) Closed 8 days ago. I have this code: if [[ ! -z “${ENV_OVERRIDE-}” ]]; then CFG=”some/path/$ENV_OVERRIDE.conf” fi It seems to be doing the same thing without the […]

What does a trailing dash do in a parameter expansion? [duplicate]

This question already has answers here: What is a hyphen beside a shell variable (1 answer) What does the ‘-‘ (dash) after variable names do here? (3 answers) Closed 8 days ago. I have this code: if [[ ! -z “${ENV_OVERRIDE-}” ]]; then CFG=”some/path/$ENV_OVERRIDE.conf” fi It seems to be doing the same thing without the […]

What does a trailing dash do in a parameter expansion? [duplicate]

This question already has answers here: What is a hyphen beside a shell variable (1 answer) What does the ‘-‘ (dash) after variable names do here? (3 answers) Closed 8 days ago. I have this code: if [[ ! -z “${ENV_OVERRIDE-}” ]]; then CFG=”some/path/$ENV_OVERRIDE.conf” fi It seems to be doing the same thing without the […]

What does a trailing dash do in a parameter expansion? [duplicate]

This question already has answers here: What is a hyphen beside a shell variable (1 answer) What does the ‘-‘ (dash) after variable names do here? (3 answers) Closed 8 days ago. I have this code: if [[ ! -z “${ENV_OVERRIDE-}” ]]; then CFG=”some/path/$ENV_OVERRIDE.conf” fi It seems to be doing the same thing without the […]

What does a trailing dash do in a parameter expansion? [duplicate]

This question already has answers here: What is a hyphen beside a shell variable (1 answer) What does the ‘-‘ (dash) after variable names do here? (3 answers) Closed 8 days ago. I have this code: if [[ ! -z “${ENV_OVERRIDE-}” ]]; then CFG=”some/path/$ENV_OVERRIDE.conf” fi It seems to be doing the same thing without the […]

What does a trailing dash do in a parameter expansion? [duplicate]

This question already has answers here: What is a hyphen beside a shell variable (1 answer) What does the ‘-‘ (dash) after variable names do here? (3 answers) Closed 8 days ago. I have this code: if [[ ! -z “${ENV_OVERRIDE-}” ]]; then CFG=”some/path/$ENV_OVERRIDE.conf” fi It seems to be doing the same thing without the […]