Comments (3)
Thanks for flagging this @bryanperris -- I've put in a fix.
from xonsh.
I can reproduce:
$UPDATE_OS_ENVIRON
# False
$HOME = '/tmp'
cd
pwd
# /home/user # Expected: /tmp
$UPDATE_OS_ENVIRON = True
$HOME = '/tmp'
cd
pwd
# /tmp # As expected
It looks this question about defaults. Should UPDATE_OS_ENVIRON be True by default or not. What side effects will be if so.
from xonsh.
Either way I would expect the common use case in the shell where changing $HOME would also affect cd's default path, like it would in bash. To be more specific, using cd in the XSH environment should depend on XSH's HOME env var rather than the one from the os module, no matter the value set for $UPDATE_OS_ENVIRON.
from xonsh.
Related Issues (20)
- conda and mamba: `DeprecationWarning: Use xonsh.lib.lazyasd instead of xonsh.lazyasd.` HOT 1
- What is changed after releasing new resolver? HOT 2
- Windows: Comapre typing speed: xonsh 0.16.0 vs 0.18.2 HOT 29
- [docs] Cli command examples in guides should be fully copy&pasteable, i.e., without @
- Completion exception when input ends with `@(` HOT 2
- AUTO_CD broken on 0.18.2 HOT 2
- problems importing case_insensitive_dict HOT 10
- Callable alias can provoke `Bad file descriptor` exception in the internal or external code HOT 21
- git completion only lists the files in the directory, not the commands and the files.
- install from homebrew on macos: Python Icon Jumping on the Dock HOT 8
- $XONSH_SUBPROC_OUTPUT_FORMAT affects downstream apps HOT 1
- Callable alias with subproc commands: upstream redirect ignored in downstream command redirect
- Edge case: callable alias with full capturing and redirect in the middle: `I/O operation on closed file`
- Callable alias: redirect inside uncaptured operator produces `AttributeError: 'int' object has no attribute 'readable'`
- Windows: No backscroll in Python REPL when running under xonsh HOT 5
- Color highlighting sometimes fails on fast typing
- Unexpected numerical token HOT 1
- Variables shadowing executables should be highlighted green
- installation and configuration options for NixOS HOT 2
- Subprocess output not captured in rc script
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xonsh.