michaellukashov / Far-NetBox

SFTP/SCP/FTP/FTPS/WebDAV/S3 client for Far Manager 3 (http://farmanager.com/)
https://forum.farmanager.com/viewtopic.php?t=6317
GNU General Public License v2.0
155 stars 52 forks source link

Directory context preservation regression #450

Closed uri2x closed 2 months ago

uri2x commented 2 months ago

In all builds prior to version 23.xx, when executing a bash command within an SFTP session in the NetBox plugin for FAR Manager, the command context correctly adhered to the navigated directory path. This expected behavior ensured that any bash command executed after navigating to a different folder within the SFTP session would operate in the context of the newly navigated-to directory.

Steps to Reproduce:

  1. Initiate an SFTP session and log in to /home/user.
  2. Execute the "pwd" command; the output correctly shows /home/user.
  3. Navigate to a subfolder within the session, for example, "data".
  4. Execute the "pwd" command again to confirm the current directory.

Expected Behavior (as observed in versions prior to 23.xx):

Actual Behavior (observed in versions 23.xx and later):

Impact: This issue introduces confusion and poses a risk of users inadvertently executing commands in the incorrect directory, potentially leading to operational errors.

Recommendation: It is advisable to restore the previous behavior where bash command contexts within SFTP sessions dynamically reflect the current directory as navigated by the user within the session.