On Wed, Jan 09, 2019 at 10:43:42AM +1100, Russell Coker wrote:
> It would probably be easier to just canonicalise all path names given
> on the command line and then cd / before starting work. Apart from the
> possibility of a relative pathname on the command line there's no
> benefit in restoring the directory.

I'm pretty sure it will in fact be easier to use save-cwd from Gnulib,
and I'm already working on patches in that direction.  (The only real
obstacle is that GRUB's use of Gnulib is currently a bit of a mess, so
I'm working on cleaning that up first.)  Of course you're free to submit
a patch upstream implementing your preferred approach, but this is mine.

-- 
Colin Watson                                       [cjwat...@debian.org]

Reply via email to