Re: [PATCH v2] An alias that starts with "!!" runs in the current directory.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2010-05-05 at 17:31 -0400, Eli Barzilay wrote:
> With "!"-prefixed shell aliases, the shell command not only gets
> executed at the repository top level, but there is no way to know the
> current directory of the original call.  This adds "!!"-prefixed aliases
> as a similar variant for "!"-prefixed ones, but the commands are
> executed in the original directory instead of the top level.
> 
> Signed-off-by: Eli Barzilay <eli@xxxxxxxxxxxx>

Is there any precedent for the "!!" syntax? Something like ".!", "./!",
or "!(.)" would make the intention more clear, I'd think, as well as
leaving room for other extensions to be added later, and some
explicit-opposite, like "/!", to complement it. (It's not like people
are going around with binaries called "!", is it?)

Ignore my suggestions if it turns out that "!!" is used by other things,
but this one seems to be begging for someone else to come along with a
"me too!"


-- 
-- Will

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]