<div dir="ltr"><div>Hi all,</div><div><br></div><div>In the docs for file(1) we have:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Users depend on knowing that all the readable files in a directory have the word “text” printed.  Don't do as Berkeley did and change “shell commands text” to “shell script”.<br></blockquote><div><br></div><div>Which is indeed a well-loved behaviour! However, /bin/file appears to have done exactly that for modulefiles. Eg. examining the same file from two different systems:</div><div><br></div><div>(1) Older Centos 7 machine</div><div><br></div><div>$ file --version</div><div>file-5.11<br>magic file from /etc/magic:/usr/share/misc/magic<br></div><div>$ file ./teamhpc</div><div>./teamhpc: ASCII text<br></div><div><br></div><div>(2) Newer Rocky 9 machine</div><div><br></div><div>$ file --version</div><div>file-5.39<br>magic file from /etc/magic:/usr/share/misc/magic<br>$ file ./teamhpc<br>./teamhpc: modulefile</div><div><br></div><div>Modulefiles are effectively TCL code so I believe the "text" category is justified, and indeed the reason I noticed this is because I have another script using file(1) which relies on this label :)</div><div><br></div><div>The responsible change is from 2019 <<a href="https://github.com/file/file/commit/acc55b97">https://github.com/file/file/commit/acc55b97</a>>, which I believe was first released in file-5.38? Can the magic file be updated so the description includes "text" once again?</div><div><br></div><div>Cheers,</div><div>-Rowan</div></div>