Comments (3)
type
is writing those error messages to stderr. It's working properly. I think stderr just needs to be redirected to /dev/null
.
from hub.
- it will never work with zsh, where
-t
is not known:
% type -t foo
zsh: bad option: -t - It seems that with bash, the builtin
type
does not get properly handled with ````, unlike to when usingsystem
: "command not found: type -t xdg-open" means that`type -t xdg-open`is being executed as command, and not`type`with`-t xdg-open`as command arguments.
I do not know why`which` is different (apparently it is a shell builtin, too), but it works.
Where have you tested this, bash I assume?
In zsh and bash (both via cygwin now):
% ruby -e 'type type
'
-e:1: command not found: type type
When used in the shell directly:
% type type
type is a shell builtin
You're (partly) right about redirecting stderr though: this is required for which
, but it should not be required for type
: the command not found: type type
error does not mean that type
is not found, but that type type
is not found (as a command).
I will add redirection to stderr to my topic branch.
from hub.
Merged in 76081e5, thanks!
from hub.
Related Issues (20)
- update Go version
- Adebayo
- At least 1 approving review is required Bug HOT 2
- #690
- Please bump the golang.org/x/sys dependency
- Let `hub fork` copy only the main branch
- Error on fetching origin
- value from the inputs are not passing to the called workflow when using Reusable workflow scenario
- Deleting a tag not possible?
- Github New Update Bug in Mobile HOT 1
- This is no longer planned due to a change in our strategic priorities and the allocation of our resources towards higher-priority initiatives.
- My
- `git pull --rebase` for `hub sync`
- `hub` is not available on GitHub actions HOT 2
- Question: Is it possible to add the project About text when creating a new GitHub...
- Using `hub pull-request` results in 404 error
- hub 2.7.0 is perma installed on my Ubuntu 20.04 HOT 1
- PR rebased on Github breaks the hub sync functionality to cleanup local branches when PR branch is deleted (after rebase)
- lol
- Support cherry-pick from a different repository
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 hub.