#!/bin/bash
set -o posix
var=ancienne-valeur
echo ${var:+nouvelle-valeur}