Ticket #2805 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

Relative paths misinterpreted as cmdline arguments

Reported by: egmont Owned by: andrew_b
Priority: major Milestone: 4.8.4
Component: mc-core Version: 4.8.1.3
Keywords: Cc:
Blocked By: Blocking:
Branch state: merged Votes for changeset: committed-master committed-stable

Description

When giving relative directories as cmdline arguments to mc, mc misinterprets them. Apparently the 2nd one is interpreted relative to the user's home, and the first one is interpreted relative to the second one - or something along these lines. Expected behavior, the behavior up until recently: both should be interpreted relative to the directory from which mc is started.

Probably related to #2783.

Examples:

cd /
mc bin
expected: /bin in the left panel, actual: ~/bin (the subdir under my home)

cd /home/egmont
mc . /etc
expected: /home/egmont and /etc, actual: /etc in both panels

cd /
mc etc sbin
expected: /etc and /sbin, actual: /sbin in both panels

cd /home/egmont
mc .. /usr/local/bin
expected: /home and /usr/local/bin, actual: /usr/local and /usr/local/bin

Change History

comment:1 Changed 13 years ago by andrew_b

  • Owner set to andrew_b
  • Keywords stable-candidate added
  • Status changed from new to accepted
  • Branch state changed from no branch to on review
  • Milestone changed from Future Releases to 4.8.4

Branch: 2805_relative_path_args (parent master).
changeset:9a49dd18c861ea6d7a680f3cec18954fb17f32a3

For test, this patch can be directly applied to the 4.8.1-branch (and will be after ticket approve).

comment:2 Changed 13 years ago by egmont

Works correctly, thanks!! :)

comment:3 Changed 13 years ago by slavazanko

  • Votes for changeset set to slavazanko

comment:4 Changed 13 years ago by angel_il

  • Votes for changeset changed from slavazanko to slavazanko angel_il
  • Branch state changed from on review to approved

comment:5 Changed 13 years ago by andrew_b

  • Keywords stable-candidate removed
  • Status changed from accepted to testing
  • Votes for changeset changed from slavazanko angel_il to committed-master committed-stable
  • Resolution set to fixed
  • Branch state changed from approved to merged

comment:6 Changed 13 years ago by andrew_b

  • Status changed from testing to closed
Note: See TracTickets for help on using tickets.