Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use more idiomatic fish #1042

Merged
merged 1 commit into from Oct 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/asdf.fish
Expand Up @@ -7,7 +7,7 @@ function asdf
switch "$command"
case "shell"
# source commands that need to export variables
. (asdf export-shell-version fish $argv | psub)
command asdf export-shell-version fish $argv | source # asdf_allow: source
case '*'
# forward other commands to asdf script
command asdf "$command" $argv
Expand Down
1 change: 1 addition & 0 deletions test/banned_commands.bats
Expand Up @@ -23,6 +23,7 @@ banned_commands=(
# Process substitution isn't POSIX compliant and cause trouble
"<("
# source isn't POSIX compliant. . behaves the same and is POSIX compliant
# Except in fish, where . is deprecated, and will be removed in the future.
source
jthegedus marked this conversation as resolved.
Show resolved Hide resolved
)

Expand Down