LWN.net Logo

Mark Shuttleworth at LinuxTag

Mark Shuttleworth at LinuxTag

Posted Jun 25, 2010 10:54 UTC (Fri) by robbe (guest, #16131)
In reply to: Mark Shuttleworth at LinuxTag by zzxtty
Parent article: Mark Shuttleworth at LinuxTag

The PID overrun can also be thwarted by using "exec gconftool..." in the OP's scripts.

My maintainability concern with putting aliases in .bashrc is that only a single shell sees that.

Coming back to performance, the alias solution does incur the (small) per-shell cost of reading, parsing, and keeping in memory the alias, when in most shells you will never need it.

IIRC zsh has one-per-file functions that can reside in a directory somewhere. This is probably the optimal solution here: as maintainable as a shell script, loaded on demand, does not fork a new shell.


(Log in to post comments)

Mark Shuttleworth at LinuxTag

Posted Jun 28, 2010 20:01 UTC (Mon) by bjartur (subscriber, #67801) [Link]

Similiar to a source then?

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds