#!/bin/bash first= if test -n "$PACKAGES"; then echo -n '(' for p in $PACKAGES; do if test -z "$first"; then echo -n "$p" first=no else echo -n " $p" fi done echo -n ') ' fi