サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
中東情勢
www.vidarholen.net
Reddit user mathisweirdaf posted this interesting observation: $ ls -lh /usr/bin/{test,[} -rwxr-xr-x 1 root root 59K Sep 5 2019 '/usr/bin/[' -rwxr-xr-x 1 root root 55K Sep 5 2019 /usr/bin/test [ and test are supposed to be aliases for each other, and yet there is a 4kiB difference between their GNU coreutils binaries. Why? First, for anyone surprised: yes, there is a /usr/bin/[. I have a previous
In shell scripting you sometimes come across comparisons where each value is prefixed with "x". Here are some examples from GitHub: if [ "x${JAVA}" = "x" ]; then if [ "x${server_ip}" = "xlocalhost" ]; then if test x$1 = 'x--help' ; then I’ll call this the x-hack. For any POSIX compliant shell, the value of the x-hack is exactly zero: this comparison works without the x 100% of the time. But why wa
tl;dr: We look at how Zsh and Fish is able to indicate a missing terminating linefeed in program output when the Unix programming model precludes examining the output itself. Most shells, including bash, ksh, dash, and ash, will show a prompt wherever the previous command left the cursor when it exited. The fact that the prompt (almost) always shows up on the familiar left-most column of the next
ShellCheck is a static analysis tool that points out common problems and pitfalls in shell scripts. As of last weekend it appears to have become GitHub’s most starred Haskell repository, after a mention in MIT SIPB’s Writing Safe Shell Scripts guide. While obviously a frivolous metric in a niche category, I like to interpret this as meaning that people are finding ShellCheck as useful as I find Pa
Here is a list of English interjections, specifically those that are not included in normal dictionaries because they just signify noises people make (ahh, ow, grr) rather than exclamation words (hey, stop, yes). Feel free to mail me if you have suggestions or comments. Like the sounds themselves, most of the interjection can be made stronger by stretching them out, such as "aaaaaah!!!" or "awwwww
What we’re experiencing are subshells, and different shells have different policies on what runs in subshells. Environment variables, as well as the current directory, is only inherited parent-to-child. Changes to a child’s environment are not reflect in the parent. Any time a shell forks, changes done in the forked process are confined to that process and its children. In Unix, all normal shells
Swearing Companies People Filesystems Love&Hate Blooeans 64bit archs Garbage Hacks *nix Custom If you enable Javascript, you can get nifty, interactive graphs! Otherwise, you're stuck with this old version that just shows an outdated, static png. How many times are words, names or functions found in the Linux kernel source code? Browse an example or write your own comma-separated list to find out!
このページを最初にブックマークしてみませんか?
『www.vidarholen.net』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く