|
|
Subscribe / Log in / New account

Debian's which hunt

Debian's which hunt

Posted Oct 28, 2021 18:44 UTC (Thu) by joey (guest, #328)
In reply to: Debian's which hunt by Taywee
Parent article: Debian's which hunt

One use case is eg:

#!/bin/sh
foo=$(which foo)
PATH=something:else
$foo

Whether that will work with command -v will depend on what shell /bin/sh uses, since different shells read different dotfiles which could contain aliases. Yeah, I had a case of this in my ~/bin/.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds