[PR #11472] cmd: handle single quote in filenames on Linux #13553

Open
opened 2026-04-13 00:30:03 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/11472

State: open
Merged: No


Fixes #10333

This PR fixes the single quote escaping that was not working on Linux. This was brought up in the comment section from the Issue.

Output from my local code and from ollama:

Image correctly embeded:

drull@smart-toaster:~/Documents/ollama$ go run . run qwen2.5vl:3b
>>> '/home/drull/Pictures/'\''a'\''a'\''a'\''a'\''a'\''aa'\'''\'''\'''\''aaa'\''.png' 
Added image '/home/drull/Pictures/'a'a'a'a'a'aa''''aaa'.png'
I'm sorry, but I'm not sure what you're asking. Can you please provide more context or information?

Previous behaviour:

drull@smart-toaster:~/Documents/ollama$ ollama run qwen2.5vl:3b
>>> '/home/drull/Pictures/'\''a'\''a'\''a'\''a'\''a'\''aa'\'''\'''\'''\''aaa'\''.png' 
The string you provided appears to be a path to a file in the home directory of a user named "drull". 
**Original Pull Request:** https://github.com/ollama/ollama/pull/11472 **State:** open **Merged:** No --- Fixes #10333 This PR fixes the single quote escaping that was not working on Linux. This was brought up in the comment section from the Issue. Output from my local code and from ollama: **Image correctly embeded:** ``` drull@smart-toaster:~/Documents/ollama$ go run . run qwen2.5vl:3b >>> '/home/drull/Pictures/'\''a'\''a'\''a'\''a'\''a'\''aa'\'''\'''\'''\''aaa'\''.png' Added image '/home/drull/Pictures/'a'a'a'a'a'aa''''aaa'.png' I'm sorry, but I'm not sure what you're asking. Can you please provide more context or information? ``` **Previous behaviour:** ``` drull@smart-toaster:~/Documents/ollama$ ollama run qwen2.5vl:3b >>> '/home/drull/Pictures/'\''a'\''a'\''a'\''a'\''a'\''aa'\'''\'''\'''\''aaa'\''.png' The string you provided appears to be a path to a file in the home directory of a user named "drull". ```
GiteaMirror added the pull-request label 2026-04-13 00:30:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13553