With quotes surrounding ${disks}, the hddtemp command attempts to execute across the entire string. If, for instance, the string contains multiple drives like "/dev/sda /dev/sdb", then this entire string is what hddtemp operates over. Without quotes, however, hddtemp parses each space-delimited drive individually:
With quotes surrounding ${disks}, the hddtemp command attempts to execute across the entire string. If, for instance, the string contains multiple drives like "/dev/sda /dev/sdb", then this entire string is what hddtemp operates over. Without quotes, however, hddtemp parses each space-delimited drive individually:
With quotes (bad):
Without quotes (good):