Quote:
Originally Posted by
RudiC
How can you have two file names? You're calling "BackupRecords --log" just once and then use the shell variable, which is not modified in between.
Do other "BackupRecords --xxx" calls have side effects?
Even if running
BackupRecords has side effects, all invocations are in subshell environments (so, except for the first invocation of
BackupRecords, they shouldn't be able to affect he value of the
BUPLOG variable in the invoking script). The only thing that makes sense to me is that value returned by
BackupRecords --log must return a string that includes a command substitution (from the description, probably including an invocation of the
date utility) that produces different results each time
$BUPLOG is expanded. But, the only way to know for sure is to see the source for
BackupRecords.