[Nix-dev] Re: [Nix-commits] SVN commit: nix - 15548 - ludo - nixos/trunk/installer

Eelco Dolstra e.dolstra at tudelft.nl
Mon May 11 15:18:05 CEST 2009


Ludovic Courts wrote:

> Previously, since `nullglob' is active, `$(ls /boot/kernels/*)'
> would translate into `$(ls)' when `/boot/kernels' is empty, which
> would then lead to the removal of all the files under $PWD.

Wow, good catch.  Hope you didn't lose anything important...

I can't remember why I used "ls" in the first place :-S

> Additionally, if `/boot/kernels' was not empty, `$fn' would contain
> only the basename of the files, whereas `$filesCopied' is indexed
> by full paths.

Actually, this isn't the case because "ls /boot/kernels/*" prints fully
qualified paths (contrary to "ls /boot/kernels").

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list