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

Open
opened 2026-04-19 17:22:53 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/11472
Author: @caetano-dev
Created: 7/18/2025
Status: 🔄 Open

Base: mainHead: imagePath


📝 Commits (1)

  • 7023901 Fix image embeding with single quote

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 cmd/interactive.go (+1 -0)

📄 Description

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". 

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/11472 **Author:** [@caetano-dev](https://github.com/caetano-dev) **Created:** 7/18/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `imagePath` --- ### 📝 Commits (1) - [`7023901`](https://github.com/ollama/ollama/commit/70239012685da759da8e88c2346642fc56bdf023) Fix image embeding with single quote ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/interactive.go` (+1 -0) </details> ### 📄 Description 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". ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 17:22:53 -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#24093