Comments (2)
What this is saying is that $status
is not a valid command. It is a variable.
What you want is to do something with that variable, like echo $status
. There, echo
is your command, and it'll print the value of the status variable.
The reason for the message here is that $status
is often used by people like if $status = 0
- which isn't valid in a shellscripting language like fish (it also would not be valid in bash, for example) - you want if test $status = 0
, which is why it sends to you the conditions help page.
(other variables can be used as a command - you can do $PAGER
, if $PAGER is set to "less" for instance, but $status will only ever be a number and so we changed it so it heads off that mistake at the pass, but we didn't assume that anyone would just enter variables to get their value, which is simply not how a language like this works)
from fish-shell.
got it, that makes sense thanks. And ya, I have a bad habit of just doing $? and it just says 0 is not a command, but that's just a bad process on my side
from fish-shell.
Related Issues (20)
- `conda env update --file` does not have path completion HOT 1
- `funced`/`funcsave` sometimes replaces `--argument-names` with `--argument` HOT 3
- [vi-mode] Allow different fish_sequence_key_delay_ms for different bind modes HOT 1
- Fish should expand abbreviations after an `env` command HOT 3
- feature request: support full CSIu kitty keyboard protocol HOT 1
- Test failures pre 3.8.0 HOT 6
- Configure `backward-kill-path-component` to count `-` as a separator? HOT 3
- Add an easy way to retry a command until it succeeds HOT 1
- Undenied permission with brew? HOT 8
- Fish git prompt doesn't show (U)pdated but (U)nmerged changes HOT 2
- fish_history corrupted with NUL bytes HOT 1
- Oh, I have to pass the argument with quotes, I see. But this one is not working for me HOT 1
- fish_variables has too large size make fish has a significant delays during startup HOT 1
- Different descriptions of Universal variables in the documentation HOT 1
- Transient prompt doesn't work on recent git master builds
- Terminal protocols spew a *lot* of output
- Android install tutorial in README.md HOT 1
- Alias escaping HOT 1
- Feat: In commands such as `edit_command_buffer` set an environment variable to let the editor config setup custom behaviour HOT 3
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.