nix develop creates and environment with its own shell - Bash. I don't see any issues with that one. However, starting GRASS GIS with a shell, e.g., grass --text, gives partially broken version of that shell. It is the same shell (whatever is in $SHELL, so /nix/store/.../bin/bash), but this is the behavior I get:
Arrows don't move, but produce ^[[A^[[C^[[B^[[D. Same for Home etc.
Tab writes tab, but does not auto-complete.
Search with Ctrl+R does not work, ^R is produced instead.
To reproduce
nix develop
app/bin/grass --text --tmp-project XY
Expected behavior
Same behavior as the shell in nix develop and GRASS shell without nix.
System description
Operating System: Pop!_OS 22.04 LTS (jammy)
Our nix environment
GRASS GIS version: main branch
GNU bash, version 5.2.32(1)-release (x86_64-pc-linux-gnu) (from /nix/store)
Describe the bug
nix develop
creates and environment with its own shell - Bash. I don't see any issues with that one. However, starting GRASS GIS with a shell, e.g.,grass --text
, gives partially broken version of that shell. It is the same shell (whatever is in$SHELL
, so/nix/store/.../bin/bash
), but this is the behavior I get:^[[A^[[C^[[B^[[D
. Same for Home etc.^R
is produced instead.To reproduce
Expected behavior
Same behavior as the shell in
nix develop
and GRASS shell without nix.System description