Misbehaving msys tar

Simon Peyton-Jones simonpj at microsoft.com
Fri Oct 16 03:45:23 EDT 2009


|  > bash-3.1$ tar c var/log
|  > tar: unable to record current working directory: No such file or directory
| 	
| 	
| When I have this symptom on Unix, I cure it by cd-ing to the absolute
| pathname of what I believe to be the current directory.  I don't know
| if this trick works on that other operating system...

Interesting that the same bug happens on Unix.  Googling for "tar: unable to record current working directory" reveals surprisingly little.

Sadly your fix doesn't seem to work

Simon

simonpj at MSRC-1326588 /c/tmp
$ ls ray-trace/                                                                                          
Color.lhs  Main.lhs  Ray.lhs  Scene.lhs  Scenes.lhs  ShamelesslyStolenPPMCode.lhs

simonpj at MSRC-1326588 /c/tmp
$ tar cf foo.tar ray-trace
tar: unable to record current working directory: No such file or directory

simonpj at MSRC-1326588 /c/tmp
$ cd c:/tmp               

simonpj at MSRC-1326588 /c/tmp
$ tar cf foo.tar ray-trace
tar: unable to record current working directory: No such file or directory

simonpj at MSRC-1326588 /c/tmp
$ cd /c/tmp               

simonpj at MSRC-1326588 /c/tmp
$ tar cf foo.tar ray-trace
tar: unable to record current working directory: No such file or directory

simonpj at MSRC-1326588 /c/tmp
$ pwd
/c/tmp



More information about the Cvs-ghc mailing list