# RUN: %fish %s _tide_parent_dirs function _java _tide_decolor (_tide_item_java) end set -l javaDir (mktemp -d) cd $javaDir mock java -version "echo 'openjdk 17.0.1 2021-10-19 OpenJDK Runtime Environment (build 17.0.1+12) OpenJDK 64-Bit Server VM (build 17.0.1+12, mixed mode)'" set -lx tide_java_icon  _java # CHECK: touch pom.xml _java # CHECK:  17.0.1 mock java -version "echo 'openjdk version \"1.8.0_332\" OpenJDK Runtime Environment (build 1.8.0_332-b04) OpenJDK 64-Bit Server VM (build 25.332-b04, mixed mode)' >&2" _java # CHECK:  1.8.0 command rm -r $javaDir