mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
Fix type test if system doesn't have realpath
The description changes
This commit is contained in:
parent
0fd7e9d0a4
commit
ad789d4242
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue