|
From: | ParetoOptimalDev |
Subject: | Re: sh -c 'whoami' gives permission error in docker container and puts me in weird prompt/subshell |
Date: | Wed, 05 Apr 2023 10:12:32 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) |
Note that the following: > emacs -Q > > C-x C-f /docker:alpine3173: RET > > M-x eshell > > ``` > Welcome to the Emacs shell > > /docker:alpine3173:~ # sh > sh: cd: /root/: Permission denied > ///d7a490935d9ccac4bbd00c51c4cb863b#$echo $USER > paretoOptimalDev > ///d7a490935d9ccac4bbd00c51c4cb863b#$echo $SHELL > /run/current-system/sw/bin/bash > ///d7a490935d9ccac4bbd00c51c4cb863b#$ > exit > /docker:alpine3173:~ # whoami > paertoOptimalDev > ``` FYI this works fine in `M-x shell`: ``` emacs -Q C-x C-f /docker:alpine3173: RET M-x shell /docker:alpine3173:/root/ #$ sh -c whoami root ``` So this is something specific to eshell I think?
[Prev in Thread] | Current Thread | [Next in Thread] |