emersion / emersion/mrsh

Aliases not being used while parsing contents of the `$ENV` file

Open
#195 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
531
Forks
40
PR merge metrics
No merged PRs in 30d

Description

## Steps to reproduce

create `$HOME/temp.env` -
```sh
alias echo=_echo
_echo() { printf '%s\n' 'You are using the alias'; }
echo You are NOT using the alias
```

Now run `ENV=$HOME/temp.env mrsh`

## Expected output
```
You are using the alias
```

## Actual output
```
You are NOT using the alias
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with `ENV=$HOME/temp.env mrsh` using the shell content shown. Trace how aliases are parsed and applied while reading the `$ENV` file; done means the command prints `You are using the alias` rather than `You are NOT using the alias`.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.