Aliases - I learned something new
Eric Blake
eblake@redhat.com
Fri Aug 25 15:20:00 GMT 2017
On 08/25/2017 10:00 AM, cyg Simple wrote:
> If the value of an alias ends in a space the word following the issuance
> of the alias command is also checked for alias expansion.
In fact, this behavior is POSIX-mandated, so that you can do things like:
alias exec='exec '
and get alias expansion on 'foo' when you do 'exec foo'
> Example:
>
> $ alias t1='echo abc'
> $ alias t2='dev'
> $ t1 t2
> abc t2
>
> $ alias t1='echo abc '
> $ t1 t2
> abc def
Doesn't quite match what you typed above (dev vs. def), but illustrates
the point.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20170825/151f36ae/attachment.sig>
More information about the Cygwin
mailing list