<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=5542&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Bookworm's "which" pogram]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=5542</link>
		<description><![CDATA[The most recent posts in [SOLVED] Bookworm's "which" pogram.]]></description>
		<lastBuildDate>Mon, 13 Feb 2023 19:53:05 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Bookworm's "which" pogram]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=41079#p41079</link>
			<description><![CDATA[<p>Thanks for the input, guys.</p><p>Probably it&#039;s not as bad as I thought in the first place. De-deprecation seems somewhat likely and <span class="bbc">gnu-which</span> was included.<br />Still don&#039;t like it when &quot;they&quot; mess around with the basic tool set.</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>I think the NewInBookworm page just hasn&#039;t been updated</p></div></blockquote></div><p>Best solution (EDIT:), but bad public relation.</p>]]></description>
			<author><![CDATA[dummy@example.com (delgado)]]></author>
			<pubDate>Mon, 13 Feb 2023 19:53:05 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=41079#p41079</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Bookworm's "which" pogram]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40982#p40982</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Can&#039;t be bothered reading it all though</p></div></blockquote></div><p>I regret reading it all. :/</p><p>There&#039;s not much meaningful discussion - just unanswered questions and disillusionment.</p>]]></description>
			<author><![CDATA[dummy@example.com (boughtonp)]]></author>
			<pubDate>Thu, 09 Feb 2023 19:31:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40982#p40982</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Bookworm's "which" pogram]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40980#p40980</link>
			<description><![CDATA[<p>I think the NewInBookworm page just hasn&#039;t been updated. I don&#039;t get a &quot;deprecation&quot; message when I try to use /usr/bin/which.debianutils so perhaps that&#039;s been decided against. The mailing lists probably have a discussion about all this but I don&#039;t follow them myself because I don&#039;t like spoilers.</p><p>A quick search brings up <a href="https://lists.debian.org/debian-devel/2021/09/msg00283.html" rel="nofollow">https://lists.debian.org/debian-devel/2 … 00283.html</a>, which looks relevant. Can&#039;t be bothered reading it all though <img src="https://dev1galaxy.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>EDIT: crossposted, I think my mailing list link continues the discussion at the end of the first bug report.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 09 Feb 2023 18:34:33 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40980#p40980</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Bookworm's "which" pogram]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40979#p40979</link>
			<description><![CDATA[<p>Trying to find the answer to the above, seems the deprecation may have been reversed in January?<br /><a href="https://metadata.ftp-master.debian.org/changelogs/main/d/debianutils/testing_changelog" rel="nofollow">metadata.ftp-master.debian.org/changelogs/main/d/debianutils/testing_changelog</a></p><div class="quotebox"><blockquote><div><p>* Revert deprecation of which (no. 2).<br />&#160; &#160; closes: <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993582" rel="nofollow">#993582</a>, <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993700" rel="nofollow">#993700</a></p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (boughtonp)]]></author>
			<pubDate>Thu, 09 Feb 2023 18:33:37 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40979#p40979</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Bookworm's "which" pogram]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40978#p40978</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>But anyway this is rendered moot by the new gnu-which package.</p></div></blockquote></div><p>So why is the default crappy &quot;which&quot; being deprecated instead of just being replaced with GNU&#039;s superior version?</p><p>Or is the latter what will be happening but the NewInBookworm page hasn&#039;t been updated yet?</p><div class="quotebox"><cite>https://wiki.debian.org/NewInBookworm?action=info wrote:</cite><blockquote><div><p>2021-09-16 01:44:08&#160; &#160; ...&#160; &#160; GregWooledge &#160; &#160; which(1) deprecated</p></div></blockquote></div><div class="quotebox"><cite>https://tracker.debian.org/pkg/gnu-which wrote:</cite><blockquote><div><p> [2022-03-28] gnu-which 2.21+dfsg-2 MIGRATED to testing (Debian testing watch)<br />[2022-03-22] Accepted gnu-which 2.21+dfsg-2 (source) into unstable (Boyuan Yang)</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (boughtonp)]]></author>
			<pubDate>Thu, 09 Feb 2023 18:17:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40978#p40978</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Bookworm's "which" pogram]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40977#p40977</link>
			<description><![CDATA[<p>It will cause problems for scripts that call <span class="bbc">which</span>. Unless stderr is sent somewhere harmless such as /dev/null it will either put out the message to the terminal (annoying, but probably the script will still work) or get mixed up with the output the script will try to parse (and probably make the script fail).</p><p>https://wiki.debian.org/NewInBookworm says:</p><div class="quotebox"><blockquote><div><p>Shell script writers are advised to use command -v instead.</p></div></blockquote></div><p>But I won&#039;t be holding my breath waiting for *every* script calling <span class="bbc">which</span> to be updated.</p><p><span class="bbc">which</span> is actually a shell script, so if this proves too annoying you could just update it on your system to comment out the message. And try to remember this if you write a script for someone else that uses <span class="bbc">which</span>.</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Thu, 09 Feb 2023 17:49:49 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40977#p40977</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Bookworm's "which" pogram]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40975#p40975</link>
			<description><![CDATA[<div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>pretending to be an arrogant twit</p></div></blockquote></div><p>How dare you! That is outrageous. I&#039;m not pretending at all...</p><p>Anyway my advice to manually compile &amp; install GNU&#039;s <span class="bbc">which</span> is bollocks because there&#039;s already a package for it in testing/unstable:</p><div class="codebox"><pre><code>$ rmadison gnu-which                                                                                                                                                                                 
gnu-which  | 2.21+dfsg-2   | testing        | source, amd64, arm64, armel, armhf, i386, mips64el, mipsel, ppc64el, s390x
gnu-which  | 2.21+dfsg-2   | unstable       | source, amd64, arm64, armel, armhf, i386, mips64el, mipsel, ppc64el, s390x
gnu-which  | 2.21+dfsg-2   | unstable-debug | source
$</code></pre></div><p>This was alluded to by the OP but I wasn&#039;t paying enough attention. Sorry OP.</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>I am thinking that Bookworm is a release of debian, and as such its developers would or should strive for backward compatibility in as many ways as possible with all of the possible uses of the debian software.</p></div></blockquote></div><p>Hence GNU&#039;s <span class="bbc">which</span> being packaged up separately. There is no &quot;problem&quot; here at all. IMO.</p><div class="quotebox"><cite>broughtonp wrote:</cite><blockquote><div><p>Problem solved?</p></div></blockquote></div><p>That&#039;s an excellent suggestion :-)</p><p>I think this will more closely replicate the traditional output though:</p><div class="codebox"><pre><code>alias which=&#039;command -v&#039;</code></pre></div><p>But anyway this is rendered moot by the new gnu-which package.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 09 Feb 2023 17:34:42 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40975#p40975</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Bookworm's "which" pogram]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40973#p40973</link>
			<description><![CDATA[<div class="codebox"><pre><code>alias which=type</code></pre></div><p>Problem solved?</p>]]></description>
			<author><![CDATA[dummy@example.com (boughtonp)]]></author>
			<pubDate>Thu, 09 Feb 2023 15:08:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40973#p40973</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Bookworm's "which" pogram]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40972#p40972</link>
			<description><![CDATA[<p>Yes, your technical advice is likely to be helpful.</p><p>But pretending to be an arrogant twit less so, although I can understand that there probably is a constructive basis for that artistic style in your mind. </p><p>I am thinking that Bookworm is a release of debian, and as such its developers would or should strive for backward compatibility in as many ways as possible with all of the possible uses of the debian software. I believe it serves the end user community quite badly to make up a &quot;pseudo fight&quot; about which particular software is the better one for some functionality. Especially when it concerns actually removing programs or packages that get deemed to be the lesser good, and certainly where it&#039;s widely used software.</p><p>I suppose if we keep needing to patch against debian developers&#039; choices, then we end up at that place where debian is no longer our platform. Actually @Head_on_a_Stick, I believe you are well ahead of me there.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Thu, 09 Feb 2023 08:18:09 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40972#p40972</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Bookworm's "which" pogram]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40971#p40971</link>
			<description><![CDATA[<div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>Settle down a bit, please.</p></div></blockquote></div><p>I presume that is directed to the people doing the whining? I&#039;ve actually provided a solution in my post that doesn&#039;t break the packaging system. You&#039;re welcome.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 09 Feb 2023 07:11:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40971#p40971</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Bookworm's "which" pogram]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40970#p40970</link>
			<description><![CDATA[<p>Settle down a bit, please.</p><p>It should be obvious without stupid examples that trying to use a program for something it doesn&#039;t do, then it won&#039;t provide the output you want. </p><p>It&#039;s a huge step from there to saying that the program is useless, since then the problem really sits behind the keyboard.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Thu, 09 Feb 2023 07:06:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40970#p40970</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Bookworm's "which" pogram]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40969#p40969</link>
			<description><![CDATA[<div class="quotebox"><cite>delgado wrote:</cite><blockquote><div><p>For f*** sake why?</p></div></blockquote></div><p>Rather than whine like a little baby whose favourite toy has been taken away perhaps try some research instead?</p><p>I&#039;ve been aware of the limitations of <span class="bbc">which</span> for a while now and have preferred <span class="bbc">type</span> for interactive use simply because it&#039;s a better tool for the job but I did some research for you (you&#039;re welcome) and found this excellent link explaining exactly why <span class="bbc">which</span> is such a useless pile of shite that should be avoided by everyone:</p><p><a href="https://unix.stackexchange.com/questions/85249/why-not-use-which-what-to-use-then" rel="nofollow">https://unix.stackexchange.com/question … o-use-then</a></p><div class="quotebox"><cite>delgado wrote:</cite><blockquote><div><p>Probably a reminder to pin a current version before the release date to avoid stupid error messages.<br /><span class="bbc">gnu-which</span>, <span class="bbc">which.debianutils</span> ... are there more?</p></div></blockquote></div><p>That is a really stupid thing to do because the debianutils package also contains commands used in the packaging system so pinning it to an old version will break APT once you try installing packages that rely on newer features.</p><p>If you want to keep using <span class="bbc">which</span> you can either package up the GNU version or install it manually by using these commands:</p><div class="codebox"><pre><code>wget https://ftp.gnu.org/gnu/which/which-2.21.tar.gz # or whatever the latest version is
tar xf which-2.21.tar.gz &amp;&amp; cd which-2.21
./configure
make
make install # as root</code></pre></div><p>And to illustrate just how limited and crap <span class="bbc">which</span> really is:</p><div class="codebox"><pre><code>archie:~$ which ls
/usr/bin/ls
archie:~$ type ls
ls is an alias for &#039;ls --color&#039;
archie:~$ which kvm
which: no kvm in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
1archie:~$ type kvm
kvm is a function
archie:~$ which scrath 
which: no scrath in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
1archie:~$ type scratch 
scratch is an alias for &#039;doas systemd-nspawn --ephemeral --boot --directory=/&#039;
archie:~$</code></pre></div><p>So just drop <span class="bbc">which</span> completely. It&#039;s worse than useless.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 09 Feb 2023 06:49:04 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40969#p40969</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Bookworm's "which" pogram]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40968#p40968</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>delgado wrote:</cite><blockquote><div><p>For f*** sake why? Completely unnecessary.</p></div></blockquote></div><p>Hmm ...<br />No.</p><p>It&#039;s </p><h5>For fuck&#039;s sake why?</h5><p>Seriously, just who comes up with these dumb ideas?</p><p><span class="bbc">which</span> is one of the smartest and most useful Linux commands.</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 09 Feb 2023 01:06:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40968#p40968</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Bookworm's "which" pogram]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40967#p40967</link>
			<description><![CDATA[<p>New in the upcoming debian release <a href="https://wiki.debian.org/NewInBookworm" rel="nofollow">https://wiki.debian.org/NewInBookworm</a></p><div class="quotebox"><blockquote><div><p>* The which program has been deprecated, and writes a warning to standard error (but still works, so long as stderr is not being captured along with stdout).</p></div></blockquote></div><p>For f*** sake why? Completely unnecessary.<br />Will this make it to daedalus?</p><p>Probably a reminder to pin a current version before the release date to avoid stupid error messages.<br /><span class="bbc">gnu-which</span>, <span class="bbc">which.debianutils</span> ... are there more?</p>]]></description>
			<author><![CDATA[dummy@example.com (delgado)]]></author>
			<pubDate>Wed, 08 Feb 2023 22:59:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40967#p40967</guid>
		</item>
	</channel>
</rss>
