Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape string to being passed to cd #60

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Escape string to being passed to cd #60

merged 1 commit into from
Feb 10, 2025

Conversation

babarot
Copy link
Owner

@babarot babarot commented Feb 10, 2025

WHAT

as per title

before

8:53PM DEBU <ui/file.go:107> command to list dir input="cd /Users/babarot/.gomi/2025/02/10/cukub55eq52ut1nn5j3g/alice and bob.cukub55eq52ut1nn5j40; exa -T --color=always --icons"
8:53PM WARN <shell/shell.go:22> command might be failed command="cd /Users/babarot/.gomi/2025/02/10/cukub55eq52ut1nn5j3g/alice and bob.cukub55eq52ut1nn5j40; exa -T --color=always --icons"
  output=
  │ bash: line 1: cd: too many arguments

after

8:53PM DEBU <ui/file.go:107> command to list dir input="cd '/Users/babarot/.gomi/2025/02/10/cukub55eq52ut1nn5j3g/alice and bob.cukub55eq52ut1nn5j40'; exa -T --color=always --icons"

WHY

fix #58

@babarot babarot added the kind/bug A bug; unintended behavior label Feb 10, 2025
@babarot babarot merged commit a51028a into main Feb 10, 2025
5 checks passed
@babarot babarot deleted the babarot/shellescape branch February 10, 2025 11:58
@github-actions github-actions bot mentioned this pull request Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug; unintended behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Directory listing ("info" in trash) fails if the name contains spaces
1 participant