[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ln -s with one argument

From: Ed Avis
Subject: ln -s with one argument
Date: Thu, 5 Jul 2001 13:34:29 -0400 (EDT)

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

Ed Avis

reply via email to

[Prev in Thread] Current Thread [Next in Thread]