enh wrote in
 <CAJgzZoq6wb=ujhuo+4h_ntoddojb1xhv5b5batajunyhkn_...@mail.gmail.com>:
 |in terms of "what's actually used in the wild", Android uses toybox (0BSD
 |licensed, so anyone can look :-) ) for both on-device *and* for the OS
 |build itself on the host.
 |
 |toybox readlink (
 |https://github.com/landley/toybox/blob/master/toys/other/readlink.c)
 |currently supports:
 |
 |    usage: readlink FILE...
 |
 |    With no options, show what symlink points to, return error if not
 |symlink.
 |
 |    Options for producing canonical paths (all symlinks/./.. resolved):
 |    -e Canonical path to existing entry (fail if missing)
 |    -f Full path (fail if directory missing)
 |    -m Ignore missing entries, show where it would be
 |    -n No trailing newline
 |    -q Quiet (no output, just error code)
 |
 |since toybox tends to add things _as they're needed_, rather than "because
 |coreutils has them", that's probably "solid anecdata" about what gets used
 |in the wild.
 |
 |one thing i haven't seen mentioned so far (but which i added to toybox
 |myself, so i know it's definitely in use) is that existing realpath
 |implementations support *multiple* file arguments on the command line, not
 |just one.

To extend this with the widely used busybox:

  #?127|kent:toolbox.git$ busybox.static readlink --help
  BusyBox v1.34.0 (2022-01-03 21:34:20 CET) multi-call binary.

  Usage: readlink [-fnv] FILE

  Display the value of a symlink

          -f      Canonicalize by following all symlinks
          -n      Don't add newline
          -v      Verbose
  #?0|kent:toolbox.git$ busybox.static realpath --help
  BusyBox v1.34.0 (2022-01-03 21:34:20 CET) multi-call binary.

  Usage: realpath FILE...

  Print absolute pathnames of FILEs

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
    • Re: [10... Robert Elz via austin-group-l at The Open Group
      • Re:... Geoff Clare via austin-group-l at The Open Group
      • Re:... Robert Elz via austin-group-l at The Open Group
        • ... Geoff Clare via austin-group-l at The Open Group
        • ... Robert Elz via austin-group-l at The Open Group
        • ... Robert Elz via austin-group-l at The Open Group
          • ... Geoff Clare via austin-group-l at The Open Group
            • ... Steffen Nurpmeso via austin-group-l at The Open Group
          • ... enh via austin-group-l at The Open Group
            • ... Steffen Nurpmeso via austin-group-l at The Open Group
          • ... Robert Elz via austin-group-l at The Open Group
            • ... enh via austin-group-l at The Open Group
              • ... Thorsten Glaser via austin-group-l at The Open Group
              • ... enh via austin-group-l at The Open Group
              • ... Thorsten Glaser via austin-group-l at The Open Group
            • ... Robert Elz via austin-group-l at The Open Group
            • ... Geoff Clare via austin-group-l at The Open Group
            • ... Robert Elz via austin-group-l at The Open Group
              • ... Geoff Clare via austin-group-l at The Open Group
              • ... Robert Elz via austin-group-l at The Open Group

Reply via email to