rabite0 / hunter

The fastest file manager in the galaxy!
Do What The F*ck You Want To Public License
1.31k stars 64 forks source link

Quoted list values #43

Closed alexherbo2 closed 5 years ago

alexherbo2 commented 5 years ago

Use the same approach than Kakoune.

Example – Print selected files:

eval "set -- $s"

# Using a for-loop
for file do
  echo "$file"
done

# Using printf
printf '%s\n' "$@"
rabite0 commented 5 years ago

Double-quotes in file names need to be escaped to work correctly, need to do that. I'm not sure about what you're asking for, there is no scripting language in hunter, it's using $SHELL for everything.

rabite0 commented 5 years ago

Quotes in file names are fixed now. I tested with all kinds of crap like foo'"bar$'b '" baz (single file name) and it was working fine where it broke before.