commands.cc
/*
** symlink_current_file - attempt create a symbolic link to the current file
*/
attempt create a symbolic link to the current file
attempt create a symbolic link to the current file
static void symlink_current_file(DirList *dl)
{
    const char *file = get_file_name(dl);
    const char *link = prompt("Name of symbolic link: ");
    if (link == 0)
    {
        move_cursor(dl->savedYPos(), dl->savedXPos());
        synch_display();
        return;
    }
    else if (*link == 0)
    {
        message("not a valid file name");
        move_cursor(dl->savedYPos(), dl->savedXPos());
        synch_display();
        return;
    }
    if (*link == '~') link = expand_tilde(link);
    symlink_file(dl, file, link);
    synch_display();
}
static void symlink_current_file ( DirList * dl ) { const char * file = get_file_name ( dl ) ; const char * link = prompt ( " " ) ; if ( link == 0 ) { move_cursor ( dl -> savedYPos ( ) , dl -> savedXPos ( ) ) ; synch_display ( ) ; return ; } else if ( * link == 0 ) { message ( " " ) ; move_cursor ( dl -> savedYPos ( ) , dl -> savedXPos ( ) ) ; synch_display ( ) ; return ; } if ( * link == ' ' ) link = expand_tilde ( link ) ; symlink_file ( dl , file , link ) ; synch_display ( ) ; }
symlink_current_file - attempt create a symbolic link to the current file
symlink_current_file - attempt create a symbolic link to the current file
// command was aborted