Comments (10)
Sorry, i just now understood your posts. I thought that umask is a coreutil or something like that. Thank you for pointing that out.
from nushell.
It's apparently not in your path. I just ran it on macos and it works fine.
from nushell.
umask
is normally a built-in command provided by shell in linux
https://github.com/bminor/bash/blob/master/builtins/umask.def
https://git.busybox.net/busybox/tree/shell/ash.c#n14336
from nushell.
if it's built into the shell binary, i could see how that would be a problem. you'd probably have to do bash -c umask
maybe?
On MacOS, it's separate.
❯ which umask
╭─#─┬command┬──────path──────┬───type───╮
│ 0 │ umask │ /usr/bin/umask │ external │
╰───┴───────┴────────────────┴──────────╯
from nushell.
I guess it's related to Nixos. I've asked in the help forum there but haven't gotten an answer yet.
The strange thing is, that which umask
fails in bash as well but i can still run umask
in bash.
from nushell.
The strange thing is, that which umask fails in bash as well but i can still run umask in bash.
This is because it's a built-in command like nibon7 said. In this context, built-in means all the code for it is built into the bash binary so it is not an external executable. This is why I said to try bash -c umask
to see if you get a result. As long as bash is in your path, it should work.
from nushell.
I guess it's related to Nixos. I've asked in the help forum there but haven't gotten an answer yet.
The strange thing is, that
which umask
fails in bash as well but i can still runumask
in bash.
Seems like gnu which
doesn't list built-in command, and you can use bash -c help
to get built-in shell command list.
from nushell.
It would be useful to have a umask command, though. Could/should this issue be considered a feature request?
from nushell.
never used the command myself. it's also not in the uutils/coreutils crates.
from nushell.
Probably the reason it isn’t in coreutils is that it cannot be implemented as an external command for the same reason as cd
: it modifies the state of the running process. At least that’s the way it’s on Linux. No idea what /usr/bin/umask
does on macOS 😅
from nushell.
Related Issues (20)
- Make rm -rv list all the names of individual deleted files HOT 4
- Path completion don't escape special characters correctly HOT 1
- nushell 0.90.1 fails to build in termux Android HOT 3
- detect column output is inconsistent when piped to other commands HOT 1
- Panic when spreading a list to `mkdir` HOT 5
- Text selection doesn't work (Windows) HOT 3
- Make all (applicable) filesystem command signatures accept `...(rest)` instead of `<filename> ...(rest)` HOT 2
- let binding an existing variable to an invalid object drops the previous binding
- `view source` should return entire definition for custom command (redux)
- Module declaration conflicts? HOT 4
- the `$env.config.hooks.env_change.PWD` doesn't work on android HOT 4
- update column where that column is not missing HOT 3
- 0.90.1 build failure HOT 8
- Tab-completed filenames should be single-quoted, not backtick-quoted HOT 10
- Ability to delete/hide variables
- `history --clear` should be "more safe"
- How to expand Windows Shell Shortcuts like `%LocalAppData%`? HOT 3
- Contain internal commands in subcommand HOT 1
- `commandline --cursor` returns string HOT 1
- Nushell autocomplete interfering with commands autocomplete HOT 13
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 nushell.