<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Does it bother anyone else that $# in shell scripts and argc in C programs differ by one?]]></title><description><![CDATA[<p>Does it bother anyone else that $# in shell scripts and argc in C programs differ by one? That has always bothered me.</p>]]></description><link>https://forum.fedi.dk/topic/d09efc7f-abb9-4fcd-9f70-85d1255e8e70/does-it-bother-anyone-else-that-in-shell-scripts-and-argc-in-c-programs-differ-by-one</link><generator>RSS for Node</generator><lastBuildDate>Mon, 19 Oct 2026 02:41:33 GMT</lastBuildDate><atom:link href="https://forum.fedi.dk/topic/d09efc7f-abb9-4fcd-9f70-85d1255e8e70.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 21 Sep 2024 14:13:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Does it bother anyone else that $# in shell scripts and argc in C programs differ by one? on Mon, 21 Sep 2026 13:21:34 GMT]]></title><description><![CDATA[<p><span><a href="/user/barubary%40infosec.exchange">@<span>barubary</span></a></span> <span><a href="/user/jef%40mastodon.social">@<span>jef</span></a></span><br />what are the contents of those 3 args for the C program then? ( or are there just 2, and C is not using zero-indexing in this particular place?)</p>]]></description><link>https://forum.fedi.dk/post/https://veganism.social/users/pelle/statuses/117309236465861711</link><guid isPermaLink="true">https://forum.fedi.dk/post/https://veganism.social/users/pelle/statuses/117309236465861711</guid><dc:creator><![CDATA[pelle@veganism.social]]></dc:creator><pubDate>Mon, 21 Sep 2026 13:21:34 GMT</pubDate></item><item><title><![CDATA[Reply to Does it bother anyone else that $# in shell scripts and argc in C programs differ by one? on Mon, 21 Sep 2026 13:05:17 GMT]]></title><description><![CDATA[<p><span><a href="/user/jef%40mastodon.social" rel="nofollow noopener">@<span>jef</span></a></span> If you think about it wrong, it's actually off by two: <code>$#</code> is bash's <code>argc</code> minus 2.</p>]]></description><link>https://forum.fedi.dk/post/https://infosec.exchange/users/barubary/statuses/117309172445761855</link><guid isPermaLink="true">https://forum.fedi.dk/post/https://infosec.exchange/users/barubary/statuses/117309172445761855</guid><dc:creator><![CDATA[barubary@infosec.exchange]]></dc:creator><pubDate>Mon, 21 Sep 2026 13:05:17 GMT</pubDate></item></channel></rss>