Posts

Showing posts from April, 2023

why are there stupid files in my nfs-exported directory?

There's one file in the (nfs-exported) directory. Why isn't tab-complete working in the shell? Answer: because the nfs server has put a silly file there called ". nfs00000000008814aa00000002 ".  That's why auto-complete can't work.  No, you can't have nice things.

printing from gimp

One of the joys of being a full-time compliance officer is converting everything to PDF. When printing a picture from graphics application "gimp"... oh I already did this: https://wibblement.blogspot.com/2022/03/fitting-image-to-page-when-printing-in.html

why do shebangs contain complete paths?

Why do scripts' shebang lines contain something like: #!/bin/sh and not (say): #!sh ? No real reason.  The latter would be better.  shebang lines are not specified in POSIX, at all.  There is nothing stopping a Unix vendor from defining a system PATH (indeed, it's apparently supposed to be via getconf("PATH") in general) which is searched for unqualified interpreter names in shebang lines.  Just document it in the system manual, please.  The real reason it hasn't happened is that nothing has happened in Unix for 25 years. Before you say "but the linux kernel executes shebangs, and the kernel can't just go calling getconf() and such", any such distinction between kernel and userspace is, from a Unix point of view, an internal implementation matter, and thus no excuse for anything.  The system, as a whole, should sort things out, and if the system spec were to say that unqualified shebang lines shall be interpreted according to the PATH from getconf()