SPUG:~damian/bin scripts.

Brian Hatch spug at ifokr.org
Wed Jan 22 01:45:21 CST 2003

Regarding the 'infinite loops' with cd, IIRC you can prefix a
builtin command with 'builtin' to force it, as opposed to
the alias/function, etc, thus you could use

	cd () {
		builtin cd $1
		# do other things here as desired

Note that 'builtin' is not available in vanilla sh, but is in
bash/ksh/zsh and probably more.  I don't know if anyone besides
me worries about that level of portability anymore...

Brian Hatch                  Why is it if you cut off a piece
   Systems and                of a chromosome you get a boy,
   Security Engineer          but if you cut off a piece of a
http://www.ifokr.org/bri/     boy you get a girl?

Every message PGP signed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/spug-list/attachments/20030121/ba9dfab0/attachment.bin

More information about the spug-list mailing list