You're viewing a comment by Benjamin and its responses.

Benjamin Permalink
January 10, 2016, 04:12

I've commented on the Github page for the cheatsheet with this already, but maybe here is more appropriate. This only applies to the downloadable cheatsheet, not the actual article here, as far as I can see.

In your history expansion examples, you sometimes use multiple word designators in the same expansion, which doesn't work for me (Bash 4.3.11, Ubuntu). Minimal example:

$ echo a b
a b
$ echo !!:1:2
bash: 2: unrecognized history modifier

Is this something that used to work, or am I doing something wrong? The Bash manual only ever uses single designators in its examples.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "cdrom_42": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.