[arch-general] Does leading slash matter in install scriptlets?

lolilolicon lolilolicon at gmail.com
Wed Aug 7 04:35:02 EDT 2013


Many install scriptlets include the leading slash in file paths, e.g.

post_install() {
    update-desktop-database -q
    gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
}

while some strip the leading slash,

post_install() {
    update-desktop-database -q
    gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}

Would this make a difference with `pacman -S --root <path> <pkg>`?
If not, is there any case in which it would make a difference?


More information about the arch-general mailing list