Thread View: gnu.utils.bug
1 messages
1 total messages
Started by James Ganong
Thu, 05 Nov 1992 21:13
suggestion for confusing messages from tar-1.11.1
Author: James Ganong
Date: Thu, 05 Nov 1992 21:13
Date: Thu, 05 Nov 1992 21:13
47 lines
2088 bytes
2088 bytes
i think the messages that tar spits out with -v and -g are confusing.
here is my suggestion
the following part of gnu.c looks to see if it has seen a directory's
name before, and if its inode as changed.
if(dp=get_dir(namebuf)) {
if( dp->dev!=hs.st_dev
|| dp->ino!=hs.st_ino) {
if(f_verbose)
msg("directory %s has be
en renamed.",namebuf);
dp->allnew=1;
dp->dev=hs.st_dev;
dp->ino=hs.st_ino;
}
dp->dir_text="";
} else {
if(f_verbose)
msg("Directory %s is new",namebu
% mkdir e/e
% ./tar -cvf /dev/null -g r e
./tar: Directory e/e is new
e/
e/e/
% mv e/e e/f
% ./tar -cvf /dev/null -g r e
./tar: Directory e/f is new
e/
e/f/
% mkdir e/e
% rmdir e/f
% mv e/e e/f
% !.
./tar -cvf /dev/null -g r e
./tar: directory e/f has been renamed.
e/
e/f/
I think that instead of "directory %s has been renamed" it should say
"directory %s is a new directory reusing an old directory name"
and instead of "Directory %s is new" it should say
"Directory %s is a new directory name"
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads