Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • <<< doesn't seem to exist in my ksh. I get an error, and I cannot seem to find it in the man page. I'm using ksh88. Are you sure this version should have this feature? Commented Sep 28, 2011 at 13:23
  • Nope; I guess I didn't check the right man page (there was no mention of the version number on the web page :/ ) Commented Sep 28, 2011 at 13:45
  • <<< is bash 'here string'. I don't think it appears in any other shell. (Oh, zsh maybe...) Commented Sep 29, 2011 at 6:31
  • 2
    @rozcietrzewiacz: Google for man ksh. It was certainly mentioned there. Commented Sep 29, 2011 at 8:06
  • 4
    Guess how bash implements here-strings and here-docs. sleep 3 <<<"here string" & lsof -p $! | grep 0rsleep 30251 anthony 0r REG 253,0 12 263271 /tmp/sh-thd-7256597168 (deleted) — yep, it uses a tempfile. Commented Aug 24, 2012 at 17:04