fishi0x01/vsh

In interactive mode, assume path for command is pwd

Closed this issue · 1 comments

When running as shell, the present working path should be assumed for PATH on commands to make it optional. Today it is a required parameter in all cases.

https://localhost:8200 /src/> grep foo
path is required
recursive searches for a pattern starting at a path
Usage: grep [--regexp] [--keys] [--values] SEARCH PATH

Positional arguments:
  SEARCH
  PATH

Options:
  --regexp, -e           Treat search string as a regexp
  --keys, -k             Match against keys (true if -v is not specified)
  --values, -v           Match against values (true if -k is not specified)
  --help, -h             display this help and exit

https://localhost:8200 /src/> grep foo ./
...

Good idea 👍

I assume this behavior should be implemented for

grep
replace

I will look into this