kanban.bash icon indicating copy to clipboard operation
kanban.bash copied to clipboard

Mishandling paths with spaces

Open svHatch opened this issue 1 year ago • 2 comments

When ./kanban init is run within a directory that has spaces in it's path the script does not properly handle path formatting.

anon@domain:~/USB STICK/kanban$ k init mkdir: cannot create directory ‘/home/user/USB/.kanban’: No such file or directory /home/user/bin/kanban: line 133: /home/user/USB/.kanban/.kanban.conf: No such file or directory touch: cannot touch '/home/user/USB/.kanban/.kanban.csv': No such file or directory tput: unknown terminfo capability 'normal' It attempts to run on the path up to the space: /home/user/USB instead of the full path: /home/user/USB\ STICK/

svHatch avatar Apr 30 '24 13:04 svHatch

That's because it's a bash script and it thinks the path is a string not a literal. Failing as expected, this is a feature and not a bug.

dverbeeck avatar May 09 '24 08:05 dverbeeck

That makes no sense. It's certainly not a feature. If you feel it's a feature, please enlighten us what the exact feature is. You should be able to treat paths with spaces in them by properly using variables. Even in bash.

jlockard avatar May 16 '24 03:05 jlockard

this is solved in the latest version

coderofsalvation avatar Oct 17 '24 09:10 coderofsalvation