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]

 



Will Palmer <wmpalmer@xxxxxxxxx> writes:

> 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...

While I don't think !! is particularly good (or bad), possible future
extension is always a good reason to think about the notation carefully.

It probably is a good idea to switch aliases to start at the $cwd in 1.8.0
(or perhaps one major release after it), and using a notation that is more
descriptive, something like "!(cwd)" vs "!(root)", may give us a better
transtion strategy than casting cryptic "!!" in the stone.

What other variants might we want to be able to specify while defining and
using aliases?  If cwd vs root is the only distinction, then !(cwd) would
be a bit overkill, but if we used !! for this new feature, I suspect that
it would make it much harder to switch the default in the future.

Comments?


--
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]