Commit ed892719 authored by Derek Stavis's avatar Derek Stavis

remove deprecated use of IFS

parent 49a313a4
function omf.cli.help
set -l IFS ''
set -l doc_root $OMF_PATH/docs/cli
set -l doc $doc_root/omf.adoc
......
......@@ -16,8 +16,7 @@ function __omf.doctor.fish_version
set -l min_version 2.2.0
set -l current_version
begin
set -l IFS '-'
echo $FISH_VERSION | read -la version_parts
echo $FISH_VERSION | read -la --delimiter - version_parts
set current_version "$version_parts[1]"
end
......
......@@ -13,11 +13,9 @@ function omf.index.query -d 'Query packages in the index'
case '--type=theme'
set q_type theme
case '--name=*'
set -l IFS '='
echo "$arg" | read dummy q_name
echo "$arg" | read --delimiter = dummy q_name
case '--text=*'
set -l IFS '='
echo "$arg" | read dummy q_text
echo "$arg" | read --delimiter = dummy q_text
case '*'
echo "Invalid search term: '$arg'" >&2
return 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment