Fix type test if system doesn't have realpath

The description changes
This commit is contained in:
Fabian Homborg 2020-10-04 19:41:24 +02:00
parent 0fd7e9d0a4
commit ad789d4242

View file

@ -30,11 +30,11 @@ type sh
# CHECK: sh is {{.*}}/bin/sh
# Test that we print a function definition.
# The exact definition here depends on the system, so we'll ignore the actual code.
# The exact definition and description here depends on the system, so we'll ignore the actual code.
type realpath | grep -v "^ *"
# CHECK: realpath is a function with definition
# CHECK: # Defined in {{.*}}/functions/realpath.fish @ line {{\d+}}
# CHECK: function realpath --description 'print the resolved path [command realpath]'
# CHECK: function realpath --description {{.+}}
# CHECK: end
type -t realpath foobar