On Thu, May 06, 2010 at 07:31:28PM +0200, Merciadri Luca wrote: > I would like to define an alias with some `-' characters into it, in my > .bashrc. For example, if `this-is-my-alias' is my alias, I would use > > == > alias 'this-is-my-alias'='some command to achieve' > ==
Hello, It does work here. I defined: alias this-is-a-test="uname -a" in my .bashrc, and then I sourced it: source .bashrc Issuing the alias produces the expected results: $ this-is-a-test Linux ghost 2.6.26-2-686-bigmem #1 SMP Tue Mar 9 18:01:52 UTC 2010 i686 GNU/Linux > It simply does not work. Why? I tried without `'' but emacs then stops > highlighting the word, which is no good sign. Thanks. Vim does not expect an alias word to contain dashes, and highlight does not work as expected. Regards. -- Huella de clave primaria: 0FDA C36F F110 54F4 D42B D0EB 617D 396C 448B 31EB
pgpgNSBWBruH6.pgp
Description: PGP signature