I apologize,  I had forgotten the last slash.  A silly mistake on my part.
I guess I was eager to believe it was a bug because i was new to ubuntu and
hadn't built up the trust with it and would have led me to believe that it
was me doing something wrong.  Anyways, thanks for the help and the cool
strace tip!

-adam

On Fri, Apr 24, 2009 at 5:25 PM, Florian Diesch
<die...@spamfence.net>wrote:

> Thank you for taking the time to report this issue and helping to make
> Ubuntu better. Unfortunately, we can't fix it because your description
> didn't include enough information.
>
> sudo mv somefile.txt /doesnotexist
>
> moves the file "somefile.txt" to "/doesnotexist". There is to reason a
> folder  "/doesnotexist" should be created.
>
> If you mean
>  sudo mv somefile.txt /doesnotexist/
> where " /doesnotexist/" doesn't exist: That gives me an error and doesn't
> move the file:
>
>  die...@scenic:~% sudo mv  somefile.txt /doesnotexist/
>  mv: cannot create regular file `/doesnotexist/': Is a directory
>  die...@scenic:~% ls somefile.txt
>  somefile.txt
>
> If that's different for you please run
>
>    sudo strace -o mv.log mv somefile.txt /doesnotexist/
>
> and attach the file mv.log to your next comment here.
>
>
>
> ** Package changed: ubuntu => coreutils (Ubuntu)
>
> ** Changed in: coreutils (Ubuntu)
>       Status: New => Incomplete
>
> --
> sudo mv somefile.txt /doesnotexist
> https://bugs.launchpad.net/bugs/366289
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “coreutils” source package in Ubuntu: Incomplete
>
> Bug description:
> on a fresh, from scratch, install of ubuntu 9.04 it is possible to do the
> following in the default installed terminal
>
> sudo mv somefile.txt /doesnotexist
>
> without error!!
>
> The folder /doesnotexist is not created and the file somefile.txt is now
> lost for good.
>
> I was expecting an error stating that the directory does not exist and the
> file not to be moved.
>

-- 
sudo mv somefile.txt /doesnotexist 
https://bugs.launchpad.net/bugs/366289
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to