4 lines
138 B
Bash
Executable file
4 lines
138 B
Bash
Executable file
#!/bin/sh
|
|
# like "which", but shows contents if it resolves to a file
|
|
res=$(which "$@")
|
|
test -r "$res" && b --plain "$res" || echo "$res"
|