Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Cannot chdir to" "/foo/$bar" if directory hotlist contains dollar sign #2451

Closed
mc-butler opened this issue Dec 18, 2010 · 14 comments
Closed
Assignees
Labels
area: core Issues not related to a specific subsystem prio: medium Has the potential to affect progress ver: 4.7.4 Reproducible in version 4.7.4
Milestone

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/2451
Reporter basinilya (basinilya@….com)

Create a directory with '$'
Navigate mc to it
press C-\ to open hotlist
Press "Add current"
Chose the entry you just created and press enter

See the message:
Cannot chdir to "/foo/$bar" No such file or directory

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Dec 18, 2010 at 12:51 UTC (comment 1)

Works fine for me.

@mc-butler
Copy link
Author

Changed by basinilya (basinilya@….com) on Dec 18, 2010 at 13:18 UTC (comment 2)

All rught, not just dollar sign. Try to create directory named $HOME

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Dec 18, 2010 at 14:15 UTC (comment 3)

Hotlist and quick cd command recognize environment variables (like $HOME) in path. Unfotunately, it is not documented. This behaviour exists for years and I wouldn't change it.

@mc-butler
Copy link
Author

Changed by basinilya (basinilya@….com) on Dec 18, 2010 at 14:38 UTC (comment 4)

Then how to escape '$' ? \$ and %24 don't work

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Dec 18, 2010 at 15:21 UTC (comment 4.5)

Replying to basinilya:

Then how to escape '$' ? \$ and %24 don't work

This is a bug. \$ should work but doesn't.

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Mar 15, 2011 at 5:34 UTC (comment 6)

See also #2513.

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Jan 11, 2012 at 7:46 UTC (comment 7)

  • Milestone changed from 4.8 to Future Releases
  • Blocked by set to #2695
  • Branch state set to no branch
  • Owner set to andrew_b
  • Status changed from new to accepted

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Feb 18, 2012 at 12:45 UTC (comment 8)

  • Milestone changed from Future Releases to 4.8.2
  • Branch state changed from no branch to on review

Branch: 2451_no_subst_var (parent: 4.8.1-stable).
Initial [1102d55f6b8cfe9c8ff45282cb1e4210bdf3ae5d]

@mc-butler
Copy link
Author

Changed by slavazanko (@slavaz) on Feb 20, 2012 at 12:44 UTC (comment 9)

  • Votes set to slavazanko

@mc-butler
Copy link
Author

Changed by angel_il (@ilia-maslakov) on Feb 23, 2012 at 16:25 UTC (comment 10)

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

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Feb 24, 2012 at 5:44 UTC

  • Blocked by #2695 deleted

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Feb 24, 2012 at 5:45 UTC (comment 12)

  • Status changed from accepted to testing
  • Votes changed from slavazanko angel_il to committed-master
  • Resolution set to fixed
  • Branch state changed from approved to merged

Merged to master: [7721a33].

git log --pretty=oneline 792ae68..7721a33

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Mar 8, 2012 at 6:53 UTC (comment 13)

  • Keywords set to stable-candidate

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Mar 12, 2012 at 10:13 UTC (comment 14)

  • Votes changed from committed-master to committed-master committed-stable
  • Status changed from testing to closed
  • Keywords stable-candidate deleted

Cherry-picked to 4.8.1-stable.
Initial [8f57c24]

git log --pretty=oneline 0932051..dec6011

@mc-butler mc-butler marked this as a duplicate of #2513 Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues not related to a specific subsystem prio: medium Has the potential to affect progress ver: 4.7.4 Reproducible in version 4.7.4
Development

No branches or pull requests

2 participants