Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Mar 1997 11:39:47 -0800 (PST)
From:      nsayer@quack.kfu.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/3025: mv to / trailed dirs prints odd error message
Message-ID:  <199703181939.LAA00407@morpheus.kfu.com>
Resent-Message-ID: <199703181940.LAA22148@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         3025
>Category:       bin
>Synopsis:       mv to / trailed dirs prints odd error message
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 18 11:40:02 PST 1997
>Last-Modified:
>Originator:     Nick Sayer
>Organization:
just me
>Release:        FreeBSD 2.2-RELEASE i386
>Environment:

>Description:

When a directory is specified as the last argument to mv (that is,
move one or more files into the directory named) and it has a trailing
slash, then error messages will have two ajacent '/' characters.

>How-To-Repeat:

In a directory where 'kernel' does not exist:

# mv kernel /
mv: rename kernel to //kernel: No such file or directory

Another example:

# mv dlakjlkjdsalsjd /tmp/
mv: rename dlakjlkjdsalsjd to /tmp//dlakjlkjdsalsjd: No such file or directory

>Fix:
	
Perhaps a special case for moving files to directories specified with
a trailing /

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703181939.LAA00407>