mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 12:12:45 +08:00
completions/exif: Remove use of eval
This commit is contained in:
parent
88da7121af
commit
ec42c2ecec
|
@ -8,11 +8,11 @@ function __fish_exif_potential_targets
|
|||
set -l token (commandline -t)
|
||||
set -l matching_files (complete -C "__fish_command_without_completions $token")
|
||||
for file in $matching_files
|
||||
if eval "test -d \"$file\""
|
||||
if test -d "$file"
|
||||
echo $file
|
||||
else if eval "exif \"$file\"" &>/dev/null
|
||||
else if exif "$file" &>/dev/null
|
||||
echo $file
|
||||
else if not eval "test -e \"$file\""
|
||||
else if not test -e "$file"
|
||||
# Handle filenames containing $.
|
||||
if exif $file &>/dev/null
|
||||
echo $file
|
||||
|
|
Loading…
Reference in New Issue
Block a user