freebsd-dev/bin/sh
Tor Egge 8b220a611d When a variable expansion is enclosed in double quotes, the internal
representation of the expression is quoted.  Take care of this when
doing pattern matching in conjunction with trimming.

	#!/bin/sh
	c=d:e; echo "${c%:e}"

PR:		NetBSD PR#7231
Noticed by:	Havard Eidnes <Havard.Eidnes@runit.sintef.no>
1999-04-09 15:23:48 +00:00
..
bltin Fixed warnx format errors in printf and csh, and snprintf format errors 1998-12-07 12:14:04 +00:00
funcs Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
alias.c Add rcsid. Spelling. 1998-05-18 06:44:24 +00:00
alias.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
arith_lex.l Improve bookkeeping of in_waitcmd and style fixes. 1998-08-25 09:33:34 +00:00
arith.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
arith.y Improve bookkeeping of in_waitcmd and style fixes. 1998-08-25 09:33:34 +00:00
builtins.def Turn on the new type builtin. 1997-04-28 03:50:07 +00:00
cd.c Don't blindly eliminate `..' and the previous pathname component. 1998-09-06 21:01:57 +00:00
cd.h Don't blindly eliminate `..' and the previous pathname component. 1998-09-06 21:01:57 +00:00
error.c Improve bookkeeping of in_waitcmd and style fixes. 1998-08-25 09:33:34 +00:00
error.h Got two volatile sig_atomic_t and int mixed up. Spotted by Gary Palmer. 1998-08-24 19:15:48 +00:00
eval.c In interactive shells, break loops to the topmost level when a child 1999-04-03 12:55:51 +00:00
eval.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
exec.c Add rcsid. Spelling. 1998-05-18 06:44:24 +00:00
exec.h Add a type builtin and nuke register keyword usage. 1997-04-28 03:08:38 +00:00
expand.c When a variable expansion is enclosed in double quotes, the internal 1999-04-09 15:23:48 +00:00
expand.h When a variable expansion is enclosed in double quotes, the internal 1999-04-09 15:23:48 +00:00
histedit.c Add rcsid. Spelling. 1998-05-18 06:44:24 +00:00
init.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
input.c Add rcsid. Spelling. 1998-05-18 06:44:24 +00:00
input.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
jobs.c If traps are set, they are now executed even when a signal-blocking 1998-09-08 13:16:52 +00:00
jobs.h Narrow down conditions to break wait() to process traps. 1998-09-10 22:09:11 +00:00
machdep.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
mail.c Add rcsid. Spelling. 1998-05-18 06:44:24 +00:00
mail.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
main.c Add rcsid. Spelling. 1998-05-18 06:44:24 +00:00
main.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
Makefile Added a `build-tools' target for internal tools. 1998-07-07 01:06:58 +00:00
memalloc.c Be more consistent with handling of quote mark control character. 1998-09-13 19:24:57 +00:00
memalloc.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
miscbltin.c Free memory from setmode. 1998-12-16 04:45:35 +00:00
mkbuiltins Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
mkinit.c Add rcsid. Spelling. 1998-05-18 06:44:24 +00:00
mknodes.c Add rcsid. Spelling. 1998-05-18 06:44:24 +00:00
mksyntax.c Better handling of word splitting. Don't record the same region 1998-09-06 21:13:09 +00:00
mktokens Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
myhistedit.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
mystring.c Add rcsid. Spelling. 1998-05-18 06:44:24 +00:00
mystring.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
nodes.c.pat Nuke register keyword usage, #if -> #ifdef, and avoid void * 1997-04-28 03:14:04 +00:00
nodetypes Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
options.c Add rcsid. Spelling. 1998-05-18 06:44:24 +00:00
options.h The immediate execution of traps I introduced in September 1998 (to 1999-04-01 13:27:36 +00:00
output.c Add rcsid. Spelling. 1998-05-18 06:44:24 +00:00
output.h Nuke register keyword usage and #if -> #ifdef. 1997-04-28 03:06:52 +00:00
parser.c Be more consistent with handling of quote mark control character. 1998-09-13 19:24:57 +00:00
parser.h Better handling of word splitting. Don't record the same region 1998-09-06 21:13:09 +00:00
redir.c Add rcsid. Spelling. 1998-05-18 06:44:24 +00:00
redir.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
sh.1 Implement -a flag. A test shell script can be found at 1999-04-03 11:41:46 +00:00
shell.h Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
show.c Add rcsid. Spelling. 1998-05-18 06:44:24 +00:00
show.h Reorder declarations slightly. 1997-04-28 03:17:51 +00:00
TOUR Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
trap.c The immediate execution of traps I introduced in September 1998 (to 1999-04-01 13:27:36 +00:00
trap.h Do not exit on SIGINT in non-interactive shells, fixes PR 1206, 1998-08-24 10:20:37 +00:00
var.c Implement -a flag. A test shell script can be found at 1999-04-03 11:41:46 +00:00
var.h Better handling of word splitting. Don't record the same region 1998-09-06 21:13:09 +00:00