Comments (3)
By the time read
sets the variable, the $path
in cd $path
has already been expanded.
That's simply a misunderstanding. Use
cd (fd minecraft | fzf)
or
fd minecraft | fzf | read path && cd $path
instead.
Mean while in nushell
fish is not nushell. They use two different languages, with different semantics.
from fish-shell.
@Vilhelm-Ian Parameter expansion occurs before the job is executed; so the variable expansion of cd $path
is done before the value of $path
is set by the invocation of read
.
from fish-shell.
@faho Can you explain to me how it exactly works instead or pointing me to the documentation
from fish-shell.
Related Issues (20)
- calling job for event handler not found HOT 1
- fish_config cannot set theme HOT 15
- Delete scrollback buffer with `Ctrl-l` regardless of what program you're running? HOT 5
- unset command not recognized HOT 2
- Prompt contains garbage characters HOT 2
- read -P is treated as read -p
- License file incomplete HOT 2
- mvn projects completion contains leading whitespaces
- abbr seems not to work as expected HOT 4
- prompt_pwd -d1 -D3 fails for current directories that starts with dash HOT 1
- `fish --no-execute` always adds a tilde for absolute paths HOT 1
- Copy file with argument like '*.sql' only copy first matched file in self-defined function HOT 4
- Bad unicode handling in interactive command line HOT 2
- `__fish_git_prompt_showupstream` does not use `__fish_git_prompt_char_stateseparator` HOT 2
- set_color creates extra space HOT 8
- umask: symbolic mode cannot contain empty set HOT 1
- Wrong directory test in __fish_list_current_token.fish HOT 1
- Installing a Rust release HOT 21
- Test suite failure building fish 3.7.0 on ppc64le on Fedora Rawhide HOT 2
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 fish-shell.