Giter VIP home page Giter VIP logo

samefile's Issues

the executable has no function call

main() without a function call is an impenetrable opaque box

samefile/bin/samefile

Lines 11 to 27 in 5d78013

main() {
# find if two files refer to the device and inode numbers
# usage: samefile [-v|--verbose] file1 file2
# return 0 if they match
if [ "${1}" = -v ] || [ "${1}" = --verbose ]; then
set -x
shift
fi
# stat
# `-L` to dereference symbolic links # https://superuser.com/a/196655
# `-c` to display %d for device and
# %i for inode
[ "$(stat -L -c %d:%i "${1}")" = "$(stat -L -c %d:%i "${2}")" ] && return 0 || return 1
{ set +x; } 2>/dev/null
}

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>whitesource/merge-confidence:beta)

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/changelog.yml
  • actions/checkout v4
  • ruby/setup-ruby v1
  • ad-m/github-push-action v0.8.0
.github/workflows/super-linter.yml
  • actions/checkout v4
  • github/super-linter v5

  • Check this box to trigger a request for Renovate to run again on this repository

GNU `stat -c` is macOS/FreeBSD `stat -f`

This works on macOS only if stat is an alias to coreutils’s stat (gstat if using Homebrew)

[ "$(stat -L -c %d:%i "${1}")" = "$(stat -L -c %d:%i "${2}")" ] && return 0 || return 1

macOS/FreeBSD stat uses -f instead of -c to format the output.

It would work with an additional test of output...

[ "$(stat -L -c %d:%i "${1}" 2>/dev/null || stat -L -f %d:%i "${1}")" = "$(stat -L -c %d:%i "${2}" 2>/dev/null || stat -L -f %d:%i "${2}")" ] && return 0 || return 1

...which somewhat less illegibly is this:

[ "$(
  stat -L -c %d:%i "${1}" 2>/dev/null ||
  stat -L -f %d:%i "${1}"
)" = "$(
  stat -L -c %d:%i "${2}" 2>/dev/null ||
  stat -L -f %d:%i "${2}"
)" ] && return 0 || return 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.