Subject: Re: make print-PLIST and pkg_add use different quote/escape conventions
To: None <>
From: J Chapman Flack <>
List: tech-pkg
Date: 03/13/2005 16:33:00
>  	add/futil.c:                    if (fexec("mkdir", dir, NULL))
>  	add/perform.c:                                          (void) fexec("mkdir", "-p", p->name, NULL);
>  	add/perform.c:          if (fexec("mkdir", "-p", dbdir, NULL)) {

Aha.  Those handle mkdir operations internal to pkg_add itself.
@exec actions in the PLIST file are handled here:


        case PLIST_CMD:
                format_cmd(cmd, sizeof(cmd), p->name, Directory, last_file);
                if (Verbose)
                        printf("extract: execute '%s'\n", cmd);
==>             if (!Fake && system(cmd))
                        warnx("command '%s' failed", cmd);