#2519 misleading error message for [file link ...] cmd

obsolete: 8.4.4
closed-fixed
8
2003-11-10
2003-11-05
No

When I try to create a link in a directory which does
not exist, the [file link ..] command prints a
misleading error message. See below:

$ tclsh
% file link tmp/foo tp
could not create new link "tmp/foo" since target "tp"
doesn't exist

### tp does exist, it is the tmp dir which does not

% mkdir tmp
% file link tmp/foo tp
tp
%

This is with tcl8.4.4 on solaris.

Discussion

  • Donal K. Fellows

    • milestone: --> obsolete: 8.4.4
    • priority: 5 --> 8
     
  • Vince Darley

    Vince Darley - 2003-11-05

    Logged In: YES
    user_id=32170

    The problem would appear to be in these lines in tclCmdAH.c:

    } else if (errno == ENOENT) {
    Tcl_AppendResult(interp, "could not create new link \"",
    Tcl_GetString(objv[index]),
    "\" since target \"",
    Tcl_GetString(objv[index+1]),
    "\" doesn't exist",
    (char *) NULL);

    perhaps this needs changing. I won't have time to look
    further at this for a few days/week..

     
  • Vince Darley

    Vince Darley - 2003-11-10
    • status: open --> closed-fixed
     
  • Vince Darley

    Vince Darley - 2003-11-10

    Logged In: YES
    user_id=32170

    Fixed.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks