${DESTDIR}/etc/$${f##*/} expression

Daniel Bond db at danielbond.org
Fri Nov 6 05:54:40 PST 2009


Hi,On Nov 6, 2009, at 2:40 PM, Saifi Khan wrote:Hi:Can some of the experienced folks share how the following_expression_ is evaluated [ -e "${DESTDIR}/etc/$${f##*/}" ] || \It removes everything in $f, upto the last "/" (forward slash):db ~> f=/tmp/test                                   [s002 at daniel-bonds-mac-pro]db ~> echo ${f##*/}                                 [s002 at daniel-bonds-mac-pro]testso it  checks if "${DESTDIR}/etc/<file>" existsi'm keen to understand how the "amd64 -> x86_64" moniker is fedto this _expression_ and evaluated.For details, please see line 153 in /usr/src/etc/Makefile athttp://gitweb.dragonflybsd.org/dragonfly.git/blob/HEAD:/etc/MakefileAny pointers ?thanksSaifi.Cheers,danny.Attachment:
PGP.sig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00001.pgp
Type: application/octet-stream
Size: 203 bytes
Desc: "Description: This is a digitally signed message part"
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20091106/2ca79316/attachment-0017.obj>


More information about the Users mailing list