Fix tr so it no longer gets a failed assertion for [::] or [==].
authorJim Meyering <jim@meyering.net>
Fri, 18 Jan 2002 19:18:07 +0000 (19:18 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 18 Jan 2002 19:18:07 +0000 (19:18 +0000)
commit067c2ea9211fe447088abf0d1aa1e04a0ef8758b
tree7e254f46b4ee6f6c17e0f8868dcc662c14bbdac1
parente91fe759ec6027d9d76b14503fbebebfce00da2c
Fix tr so it no longer gets a failed assertion for [::] or [==].

(xmemdup): Rename from `substr' and rewrite to
take only pointer/length parameters.
(build_spec_list): Update sole caller.
Properly diagnose the invalid specs [::] and [==].
Pawel Prokop reported that `tr [::] _' elicits a failed assertion.
src/tr.c