coreutils
[Top][All Lists]
Advanced

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

Re: realpath options


From: Bruno Haible
Subject: Re: realpath options
Date: Mon, 02 Jan 2012 21:06:04 +0100
User-agent: KMail/4.7.4 (Linux/3.1.0-1.2-desktop; KDE/4.7.4; x86_64; ; )

Pádraig Brady wrote in
<http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00237.html>:
> This is for use in a proposed coreutils `realpath` command.
> Specifically by these options:
> 
>   -L, --logical                resolve `..' components before symlinks
>   -s, --strip                  don't expand symlinks

The names of these options don't feel right.

  * --strip means making something shorter, but the resulting file name
    is not necessarily shorter: After "ln -s . dot",
    "realpath dot/dot/foo" will be "/currdir/foo",
    "realpath -s dot/dot/foo" will be "/currdir/dot/dot/foo".

    How about calling this option 'no-dereference', similar to the
    option of 'chown', 'chgrp', 'chcon', 'cp', 'touch'?

    Or '--ignore-symlinks'?

  * --logical is meant to be the opposite of "physical", right?
    How about calling this option --syntactic? Would be more self-
    explanatory.

Bruno




reply via email to

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