Giter Site home page Giter Site logo

Comments (3)

KyleTryon avatar KyleTryon commented on June 19, 2024

Hey @brandon-leapyear,

Thanks for sending this in. I was not aware of the type command! Thank you for showing it to me.

I am having a little bit of a difficult type researching it but I wanted to share what I found. From my findings it seems that maybe command -v is a better generalized command. But I would like to hear more from you and your use-case.

Apologies if we are too late here, I realize this issue is quite old now.

https://en.wikipedia.org/wiki/Type_(Unix)

The type command was a shell builtin for Bourne shell that was introduced in AT&T's System V Release 2 (SVR2) in 1984,[1] and continues to be included in many other POSIX-compatible shells such as Bash. However, type is not part of the POSIX standard. With a POSIX shell, similar behavior is retrieved with

command -V name

https://unix.stackexchange.com/questions/85249/why-not-use-which-what-to-use-then

The status nowadays is that type and command -v are ubiquitous in all the Bourne-like shells

Here is an interesting point in your favor for POSIX compliant system

POSIX requires that all shell builtins (like command) be also available as external commands, but unfortunately, that's not the case for command on many systems. For instance, it's rare to find a command command on Linux based operating systems while most of them have a which command (though different ones with different options and behaviors).

Would love to better understand the issues you are facing.

from aws-cli-orb.

brandon-leapyear avatar brandon-leapyear commented on June 19, 2024

from aws-cli-orb.

brivu avatar brivu commented on June 19, 2024

This was resolved with PR #98

from aws-cli-orb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.