Re: zsh: bad option, bash works

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I did consult the manual of zsh and bash.
But I didn't realize that command 'type' is implemented within the shell.
I thought maybe something is missing in the zsh manual of command 'type'.

On Mon, Dec 19, 2011 at 6:11 AM, Cameron Simpson <cs@xxxxxxxxxx> wrote:
On 18Dec2011 22:51, Zind <wzmindlog@xxxxxxxxx> wrote:
| Thanks a trillion.   :-)

Did you consult the manual? "man "zshbuiltins" says:

      type [ -wfpams ] name ...
             Equivalent to whence -v.

      whence [ -vcwfpams ] name ...
             For each name, indicate how it would be interpreted if used as
             a command name.

             -v     Produce a more verbose report.

             -c     Print  the  results  in  a  csh-like  format.  This
                    takes precedence over -v.

             -w     For each name, print `name: word' where word  is one  of
                    alias,  builtin,  command,  function, hashed, reserved
                    or none, according  as  name  corresponds  to  an alias,
                    a built-in  command, an external command, a shell
                    function, a command defined with the hash builtin, a
                    reserved word, or  is not recognised.  This takes
                    precedence over -v and -c.

             -f     Causes the contents of a shell function to be
                    displayed, which  would otherwise not happen unless the
                    -c flag were used.

             -p     Do a path search  for  name  even  if  it  is  an
                    alias, reserved word, shell function or builtin.

             -a     Do  a  search  for all occurrences of name throughout
                    the command path.  Normally  only  the  first occurrence
                    is printed.
             -m     The  arguments  are taken as patterns (should be
                    quoted), and the information is displayed for each
                    command match- ing one of these patterns.

             -s     If  a  pathname contains symlinks, print the symlink-free
                    pathname as well.

That may cover your needs anyway. (I'm a zsh user and only use bash
when I have too.)

Cheers,
--
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

It is better never to have been born. But who among us has such luck?
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux