Sha256: 76396791442c7c0106bb0c997a3dd44dad61d115b5c8a0d269fd94d1dc471761

Contents?: true

Size: 345 Bytes

Versions: 536

Compression:

Stored size: 345 Bytes

Contents

#!/bin/bash -e

source test/test.bash

PATH=$PWD/bin:$PATH
source bash+

foo() {
  echo O HAI
}

like "$(type bar 2>&1)" 'bar: not found' \
  'bar is not yet a function'

bash+:fcopy foo bar

type -t bar &>/dev/null
ok $? 'bar is now a function'
is "$(type foo | tail -n+3)" "$(type bar | tail -n+3)" \
  'Copy matches original'

done_testing 3

Version data entries

536 entries across 268 versions & 4 rubygems

Version Path
eac_tools-0.86.5 sub/eac_git/vendor/git-subrepo/ext/bashplus/test/fcopy.t
eac_tools-0.86.5 sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/fcopy.t
eac_tools-0.86.4 sub/eac_git/vendor/git-subrepo/ext/bashplus/test/fcopy.t
eac_tools-0.86.4 sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/fcopy.t
eac_tools-0.86.3 sub/eac_git/vendor/git-subrepo/ext/bashplus/test/fcopy.t
eac_tools-0.86.3 sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/fcopy.t
eac_git-0.16.0 vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/fcopy.t
eac_git-0.16.0 vendor/git-subrepo/ext/bashplus/test/fcopy.t
eac_tools-0.86.2 sub/eac_git/vendor/git-subrepo/ext/bashplus/test/fcopy.t
eac_tools-0.86.2 sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/fcopy.t
eac_git-0.15.0 vendor/git-subrepo/ext/bashplus/test/fcopy.t
eac_git-0.15.0 vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/fcopy.t
eac_tools-0.84.2 sub/eac_git/vendor/git-subrepo/ext/bashplus/test/fcopy.t
eac_tools-0.84.2 sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/fcopy.t
eac_tools-0.84.1 sub/eac_git/vendor/git-subrepo/ext/bashplus/test/fcopy.t
eac_tools-0.84.1 sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/fcopy.t
eac_tools-0.84.0 sub/eac_git/vendor/git-subrepo/ext/bashplus/test/fcopy.t
eac_tools-0.84.0 sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/fcopy.t
eac_tools-0.83.0 sub/eac_git/vendor/git-subrepo/ext/bashplus/test/fcopy.t
eac_tools-0.83.0 sub/eac_git/vendor/git-subrepo/ext/test-more-bash/ext/bashplus/test/fcopy.t