kwc.org Photos Spare Cycles MythBusters

bash complaint of the day

$ echo "!str foo"
bash: !str: event not found
$ echo "!str foo"
!str foo

i.e. bash requires you to escape exclamation points in double-quoted strings, but if you escape them, it doesn't unescape them for you. How long has bash been around?

(the solution is to use single-quoted strings)

Post a comment


tags.

related entries.

what is this?

This page contains a single entry from kwc blog posted on November 18, 2008 10:43 AM.

The previous post was Checkout my company's new site.

The next post is We can has nother kitteh.

Current entries can be found on the main page.