Small description
touch "filename with space.txt" then vd then addcol-shell then input ls $filename
Files that don't contain a space have the command will succeed, but files with space will have an error in the stderr column: ls: cannot access "'filename with space.txt'": No such file or directory.
It seems to be related to unneeded quoting being added here:
|
arg = shlex.quote(str(context[arg[1:]])) |
As a second issue, | commands do not succeed:
z; echo $filename |sed -e s/space// gives a cell showing echo $text |sed -e s/space//
So there seems to have been a regression since #1023
Configuration
Latest develop branch. Ubuntu 24.04.4, zsh.
Small description
touch "filename with space.txt"thenvdthenaddcol-shellthen inputls $filenameFiles that don't contain a space have the command will succeed, but files with space will have an error in the stderr column:
ls: cannot access "'filename with space.txt'": No such file or directory.It seems to be related to unneeded quoting being added here:
visidata/visidata/shell.py
Line 95 in bfaf509
As a second issue,
|commands do not succeed:z;echo $filename |sed -e s/space//gives a cell showingecho $text |sed -e s/space//So there seems to have been a regression since #1023
Configuration
Latest
developbranch. Ubuntu 24.04.4, zsh.