Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • P Pacman
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
    • Locked Files
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 21
    • Merge requests 21
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Pacman
  • Pacman
  • Repository
Switch branch/tag
  • pacman
  • test
  • util
  • vercmptest.sh
Find file BlameHistoryPermalink
  • Dan McGee's avatar
    test: fix invalid usage of 'type -p' · 38e5a4a5
    Dan McGee authored Apr 02, 2011
    The vercmptest script needs to be invoked as a bash script for this to
    be valid; the -p operator is interpreted as an argument to look up by
    sh. This goes way back to commit 3bf94489, done to solve
    http://mailman.archlinux.org/pipermail/pacman-dev/2008-July/007180.html
    
    .
    
    Saw this problem running in a virtual machine where sh is not bash, but
    in fact dash:
    
        user@debian-powerpc:~/projects/pacman$ ./test/util/vercmptest.sh
        src/util/vercmp-p: not found
        src/util/vercmp is src/util/vercmp
        vercmp binary (src/util/vercmp) could not be located
    
    Signed-off-by: default avatarDan McGee <dan@archlinux.org>
    38e5a4a5