Interesting

Mar 20, 2006 12:54

Did you know that in sh, ksh and bash, the following are equivalent?

$ echo hi >test
$ >test echo hi
$ echo >test hi

computers, unix, interesting

Leave a comment

Comments 5

pkprasoon March 22 2006, 10:04:29 UTC
No, I did not.

I checked the bash manual, bash.info, and under section Redirection, it is written that "... redirection operators may precede or appear
anywhere within a simple command or may follow a command...".

Reply

gandalf013 March 22 2006, 10:11:26 UTC
I read about this when I was reading "The Unix Programming Environment" in Delhi (good old memories). I almost convinced myself to bring that book with me to the US but then I didn't. Anyway, one of the best books on Unix.

I will try to figure out the Rubik's cube soon.

Reply

pkprasoon March 22 2006, 10:17:53 UTC
I could not quite guess why you did not bring the book after you almost convinced yourself.

I am really thrilled by this Rubik's cube.

Reply

gandalf013 March 22 2006, 10:22:04 UTC
Because you gave me other more interesting books. I didn't want to carry too much stuff with me anyway.

BTW, the Hindi in "Vaishali ki Nagarwadhu" is mindboggling. At times I don't understand it :-).

Reply


Leave a comment

Up