[Far Manager 0004023]: Incorrect special symbols replacement with network shares

1 view
Skip to first unread message

Mantis Bug Tracker

unread,
Dec 12, 2023, 6:43:14 AM12/12/23
to far...@googlegroups.com
The following issue has been SUBMITTED.
======================================================================
<a target="_blank"
href="https://bugs.farmanager.com/view.php?id=4023">https://bugs.farmanager.com/view.php?id=4023</a>

======================================================================
Reported By: Markus
Assigned To:
======================================================================
Project: Far Manager
Issue ID: 4023
Category: Special Symbols
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Build:
======================================================================
Date Submitted: 2023-12-12 11:43 UTC
Last Modified: 2023-12-12 11:43 UTC
======================================================================
Summary: Incorrect special symbols replacement with network
shares
Description:
Using latest FAR 3.0.0.6225 on Windows 11 x64 23H2

I have the following <b>user menu</b> command:

<pre class="bbcodeplus pre"><code class="bbcodeplus code
language-none">C:\somedir\somefile.exe "!\!.!"</code></pre>

When the object under the cursor is a file or directory, the <b>user menu</b>
correctly replaces the pattern with the path to that object, both on local
drives ("C:\somedir\file.ext") and network shares
("\\SERVER\SHARE\somedir\file.ext").

However, if the object under the cursor is a network share in the <b>network
browser</b> (for example, "\\SERVER\SHARE"), the command executed by the <b>user
menu</b> will be:

<pre class="bbcodeplus pre"><code class="bbcodeplus code
language-none">C:\somedir\somefile.exe
"\\SERVER\\SHARE\\\SERVER\\SHARE\"</code></pre>

The name of the network share is concatenated two times.

Steps to Reproduce:
<ol>
<li>Create a user menu entry with command: <b>C:\somedir\somefile.exe
"!\!.!"</b>
</li>
<li>Switch to the network browser by executing <b>net:\\YOURPCNAME</b>
</li>
<li>Put your cursor on any of the available network shares ("C$" or "ADMIN$" if
no other shares exist)
</li>
<li>Execute the entry from the user menu
</li>
<li>Look at the console screen und see what argument was passed to the command
</li>
</ol>
======================================================================

Issue History
Date Modified Username Field Change
======================================================================
2023-12-12 11:43 Markus New Issue
======================================================================

Reply all
Reply to author
Forward
0 new messages