so I did this:
function wtfman(){
local command="vi /the/path/file.txt"
$($command)
}
with the desire for the program to open vi on that path
however, when I execute wtfman
it instead returns
Vim: Warning: Output is not to a terminal
what did I do wrong and how do I go about reforming that function so that it opens vi accordingly instead of just complaining? ie I want a command stored in a string and I want to execute the command specified by that string. It works for everything else, but it's not working for vi (could it be because of vi's full screen nature?)