Re: [Ftplicity-general] What do the $'s in conf file mean?
Brought to you by:
edso
From: Larry E. <cpp...@su...> - 2016-09-14 16:01:34
|
On 09/14/2016 08:43 AM, Larry Evans wrote: > I created a test profile: > > duply test create > > and then looked in" > > ~/.duply/test/conf > > and notice several occurrences of $. For instance: > > #FILENAME='.duplicity-ignore' > #DUPL_PARAMS="$DUPL_PARAMS --exclude-if-present '$FILENAME'" > > I'm guessing that if those lines are uncommented, then > $FILENAME's value would be '.duplicty-ignore'. > I'm guessing that $<varname> retrieves the value of > a variable. Is that right. If <varname> has not been > assigned a value, then $<varname> is the empty string? > It's a bash file; hence, $<varname> does retrieve the value. That it's a bash file is based on looking in: /usr/bin/duply which is a base file which imports the conf file around line 1535 with: [ -r "$CONF" ] && . "$CONF" || warning "Cannot import config '$CONF'." -Larry |