> On July 24, 2015 at 6:42 PM Dietmar Maurer <diet...@proxmox.com> wrote: > > I have simply copy/paste current code from /etc/network/if-pre-up.d/vlan > > So, it should work with bash and dash ? > > package libpve-common-perl does not depend on bash, so its best to avoid bash? > Or should we add a dependency to make code easier?
The current version works in Dash anyway. I just consider Dash inferior since bash makes a bunch of string handling easier. Though I saw that ${x//} actually doesn't take a complete regex anyway, so you'd have to use the =~ operator and that's more code again... (I'm also a FreeBSD user so suggesting Bash as a dependency probably reserved me a slot in hell, too ;-) ) _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel