question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

commands taking a filename should expand home dir (tilde)

See original GitHub issue
Steps to reproduce the problem:
  1. Open a flow on the response tab.
  2. Press “b”.
  3. When prompted for a filename, enter ~/example.

This says “No such file or directory”. Entering “/home/username/example” works.

System information

Mitmproxy: 3.0.3 Python: 3.6.4 OpenSSL: OpenSSL 1.1.0g 2 Nov 2017 Platform: Linux-4.15.10-1-ARCH-x86_64-with-arch

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kajojifycommented, Apr 25, 2018

Thanks for the issue.

Tilda support for commands at this moment.

Button Command Status
W console.command.set save_stream_file ✔️
b cut.save
w save.file ✔️
e export.file
- replay.client.file ✔️
- replay.server.file ✔️
L view.load ✔️
L options.load ✔️
S options.save ✔️
r console.grideditor.load ✔️
R console.grideditor.load_escaped ✔️
w console.grideditor.save
shift+\ script.run ✔️

I’ll fix this.

0reactions
vfaronovcommented, Mar 27, 2018

not sure if that auto-expands already?

It doesn’t; would be nice if it did.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expand tilde to home directory - path - Stack Overflow
My program should be able to handle absolute paths as well as relative paths. My problem is that I don't know how to...
Read more >
bash - How does using the tilde work as a shortcut to my home ...
~Desktop will expand to home directory of user Desktop , if such a user exists ... It is taken literally as a file...
Read more >
Tilde Expansion (Bash Reference Manual) - GNU.org
The following table shows how Bash treats unquoted tilde-prefixes: ~ The value of $HOME.
Read more >
Expand Tilde Paths in Bash and Python - Nicky Marino
Sometimes it's necessary to reference files in a script using ~ . ... the ~ is not expanded to the home directory (such...
Read more >
Path::ExpandTilde - Expand tilde (~) to homedir in file paths
This module uses bsd_glob from File::Glob to portably expand a leading tilde ( ~ ) in a file path into the current or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found