Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #239546

Re: Tips/advice for installing latest version of fzf?

From Steve Dondley <s@dondley.com>
Newsgroups linux.debian.user
Subject Re: Tips/advice for installing latest version of fzf?
Date 2021-08-31 23:30 +0200
Message-ID <CSjuq-Aa-3@gated-at.bofh.it> (permalink)
References (6 earlier) <CSdyF-5mn-5@gated-at.bofh.it> <CSdIm-5pC-7@gated-at.bofh.it> <CSeuJ-5Vo-3@gated-at.bofh.it> <CSgGd-7fl-11@gated-at.bofh.it> <CSgZA-7lF-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


>> "sudo which hash" shows nothing. Not sure whey.
> 
> sudo is an external program, which launches other external programs.
> 
> When you type "sudo which hash", your shell (zsh) forks a child, and
> that child executes "sudo".  sudo does its authentication/authorization
> dance, and then executes "which hash", looking for an external command
> in $PATH.  It will find /usr/bin/which, and it will run that.
> 
> So effectively, you're running sudo /usr/bin/which hash.
> 
> /usr/bin/which, being an external program, has no concept of shell
> builtins.  It can only look for other external programs.  And there is
> no program named hash.  Only shell builtins.
> 
> You would get a similar non-answer if you ran "/usr/bin/which hash"
> in your shell.  The sudo part doesn't change anything, since there are
> no directories in $PATH that require superuser privileges to search.
> At least, there shouldn't be.

OK, got it. I never knew this. Lots of nuances to all this stuff. That's 
what keeps it interesting, I suppose. Thanks!

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Tips/advice for installing latest version of fzf? Steve Dondley <s@dondley.com> - 2021-08-31 15:20 +0200
  Re: Tips/advice for installing latest version of fzf? Roberto C. Sánchez <roberto@debian.org> - 2021-08-31 15:50 +0200
    Re: Tips/advice for installing latest version of fzf? Steve Dondley <s@dondley.com> - 2021-08-31 16:40 +0200
      Re: Tips/advice for installing latest version of fzf? Steve Dondley <s@dondley.com> - 2021-08-31 16:50 +0200
        Re: Tips/advice for installing latest version of fzf? Greg Wooledge <greg@wooledge.org> - 2021-08-31 16:50 +0200
          Re: Tips/advice for installing latest version of fzf? Steve Dondley <s@dondley.com> - 2021-08-31 17:00 +0200
            Re: Tips/advice for installing latest version of fzf? The Wanderer <wanderer@fastmail.fm> - 2021-08-31 17:10 +0200
              Re: Tips/advice for installing latest version of fzf? Steve Dondley <s@dondley.com> - 2021-08-31 17:20 +0200
                Re: Tips/advice for installing latest version of fzf? Steve Dondley <s@dondley.com> - 2021-08-31 17:40 +0200
                Re: Tips/advice for installing latest version of fzf? Greg Wooledge <greg@wooledge.org> - 2021-08-31 17:40 +0200
                Re: Tips/advice for installing latest version of fzf? <tomas@tuxteam.de> - 2021-08-31 18:10 +0200
                Re: Tips/advice for installing latest version of fzf? Steve Dondley <s@dondley.com> - 2021-08-31 20:30 +0200
                Re: Tips/advice for installing latest version of fzf? Greg Wooledge <greg@wooledge.org> - 2021-08-31 20:50 +0200
                Re: Tips/advice for installing latest version of fzf? Steve Dondley <s@dondley.com> - 2021-08-31 23:30 +0200
            Re: Tips/advice for installing latest version of fzf? Steve Dondley <s@dondley.com> - 2021-08-31 17:10 +0200
            Re: Tips/advice for installing latest version of fzf? Greg Wooledge <greg@wooledge.org> - 2021-08-31 17:40 +0200
              Re: Tips/advice for installing latest version of fzf? Steve Dondley <s@dondley.com> - 2021-08-31 20:30 +0200
              Re: Tips/advice for installing latest version of fzf? Richard Hector <richard@walnut.gen.nz> - 2021-09-04 11:30 +0200
            Re: Tips/advice for installing latest version of fzf? Anssi Saari <as@sci.fi> - 2021-09-01 12:20 +0200

csiph-web