I am perplexed as to why I typed an uppercase shift (DOS nostalgia?). Anyhow, it still worked because '-u.local' and '$2.local' would not exist. ----- Original Message -----
From: Erich Titl <erich.t...@think.ch> To: leaf-devel <leaf-devel@lists.sourceforge.net> Cc: Sent: Sunday, November 2, 2014 12:49 PM Subject: Re: [leaf-devel] Fwd: [leaf:bering-uclibc] [2bdcfd] - Jorge Contreras: Backup symlinks, empty dirs and other improvements Hi Jorge Am 02.11.2014 um 02:48 schrieb cpu memhd: > What I use to get rid of redundant slashes is: sed 's#//*#/#g' > Currently: > > expandpath2 /somedir/eh///he/ = /somedir/eh///he > > > With sed 's#//*#/#g': > > /somedir/eh/he > > > -jorge > I did a backport of apkg to a branch off maint and found a small glitch which made it crash. There is an uppercase SHIFT statement which busybox does not like. I found another incongruity which is more systematic. PKGROOT is set to a simple / which was removed by expandpath as it was considered a trailing slash. So trailing slashes cannot be removed all the time, which is a bit unfortunate. I need to understand the backup logic a bit better. Erich ------------------------------------------------------------------------------ _______________________________________________ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel ------------------------------------------------------------------------------ _______________________________________________ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel