Everything is a file – including punctuation

Unix, stop messing with my head.

davemc@slarti:~$ which [

Stop it. Seriously.

Okay, so [ is a command. A program. An executable. Not some syntactic massage oil applied by the shell's if and while and such (although the man page hints that in some shells it may well be).

And it has most of the same behaviour as test... that, at least, makes sense. Except that [ expects a ] as its final argument, while test doesn’t.

Huh. Cool.

1 Comment »

  1. http://www.briefingwire.com

    May 13, 2016 @ 2:53 am

    I would higly suggest Daan and lso Weise Choice to
    any person planning to work with a superior
    tree solution business!

Leave a Comment