micro-editor / micro-editor/micro

Replace string with "$VAR"

Open
#1,338 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
29.6k
Forks
1.4k
Avg merge
2d 18h
Merged PRs (30d)
10

Description

Description of the problem or steps to reproduce

in a bash script, executing
replace "VAR" "$VAR" -l

Will delete the string VAR. (probably since $VAR has no value in env..)

I would make a replaceall of a path with a new $VAR
How this could be done?

Specifications

Version: 1.4.2-dev.61
Commit hash: 2c219ba
Compiled on January 06, 2019

Terminal: bash

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported replace "VAR" "$VAR" -l behavior from a bash terminal using the stated version context, then trace the replace command's implementation and existing tests. Confirm the intended handling of a literal $VAR when the shell variable is unset and document the expected replace-all behavior before considering the issue done.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, go
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.