From efcee783e4d576898130ccbf1cb2d7d6bf1b8420 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 24 Sep 2009 11:57:11 -0600 Subject: ln: add -L/-P options * src/ln.c (STAT_LIKE_LINK): Delete. (logical): New flag. (long_options): Add -L, -P. (usage): Mention them. (main): Choose between them. (do_link): Perform correct action. * tests/ln/misc: Move hard-to-sym portion of test... * tests/ln/hard-to-sym: ...into new test, and add more. * tests/Makefile.am (TESTS): Run new test. * NEWS: Document this. * doc/coreutils.texi (link invocation, ln invocation): Likewise. * bootstrap.conf (gnulib_modules): Add linkat. --- NEWS | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 1571c9c0d..506050203 100644 --- a/NEWS +++ b/NEWS @@ -32,6 +32,13 @@ GNU coreutils NEWS -*- outline -*- last component (possibly via a dangling symlink) can be created, since mkdir will succeed in that case. +** New features + + ln now accepts the options --logical (-L) and --physical (-P), + added by POSIX 2008. The default behavior is -P on systems like + GNU/Linux where link(2) creates hard links to symlinks, and -L on + BSD systems where link(2) follows symlinks. + ** Improvements rm: rewrite to use gnulib's fts -- cgit v1.2.3-54-g00ecf