ln -s doesn't act sensibly if given only one filename.

% rm -f foo
% ln -s foo
% ls -l foo
lrwxrwxrwx    1 root     root            3 Jul  5 13:31 foo -> foo

I don't think this behaviour could ever be useful.  It would be better
to give a usage message if fewer than two arguments are given.

Making a hard link with just a single filename fails due to 'file
exists', but that too would benefit from a better error message.

% ln --version
ln (fileutils) 4.1
Written by Mike Parker and David MacKenzie.

Copyright (C) 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There
is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

-- 
Ed Avis
[EMAIL PROTECTED]


_______________________________________________
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils

Reply via email to