summaryrefslogtreecommitdiffstats
path: root/bin/sh/expand.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix environment passung to eval'ed commands.cracauer2000-05-151-1/+1
| | | | | | PR: bin/6577 Submitted by: Anatoly Vorobey <mellon@pobox.com> Approved by: silence amoung other sh experts
* First round of 8-bit fixes.cracauer1999-12-151-4/+4
|
* Fix "subscript has type `char'" warnings by casting to int, ascracauer1999-12-041-4/+5
| | | | discussed on -arch.
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Various spelling/formatting changes.kris1999-05-081-3/+3
| | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
* Next approach to make loops in interactive interruptable.cracauer1999-04-211-2/+2
| | | | PR: bin/9173
* During variable expansion, the internal representation of the expressiontegge1999-04-131-5/+5
| | | | | might be relocated. Handle this case. PR: 7059
* When a variable expansion is enclosed in double quotes, the internaltegge1999-04-091-14/+54
| | | | | | | | | | | 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>
* Be more consistent with handling of quote mark control character.tegge1998-09-131-58/+6
| | | | | | | Don't output double-quotes inside variable expansion/arithmetic expansion region in here-documents. When leaving the arithmetic expansion syntax mode, adjust the dblquote flag according to previous syntax, in order to avoid splitting of quoted variables.
* Better handling of word splitting. Don't record the same regiontegge1998-09-061-42/+210
| | | | | | multiple times when performing nested variable expansion, and preserve some quoting information in order to avoid removing apparently empty expansion result.
* Add rcsid. Spelling.charnier1998-05-181-3/+5
|
* Back out previous fix - this bug's got diplomatic immunity as a registeredjkh1997-06-191-3/+1
| | | | political issue.
* >Number: 3780jkh1997-06-191-1/+3
| | | | | | | | >Category: bin >Synopsis: WEXITSTATUS() may return nagative value, which causes sh to generate bad $? PR: 3780 Submitted by: sanewo@ba2.so-net.or.jp
* Now [^abc] means the same as [!abc] like bash and *csh already doesache1997-06-061-4/+4
|
* Use the __unused attribute where warranted.steve1997-05-191-2/+2
|
* Sync with NetBSD's revision 1.29 of this file.steve1997-04-281-27/+55
| | | | Obtained from: NetBSD
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Fix a expansion bug that caused the result of `echo $((1 << 30))`steve1997-02-161-2/+5
| | | | | | to get truncated. Submitted by: bde
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* This doesn't change any behavior, but may be a slightsteve1996-12-211-2/+2
| | | | | | optimization. (num-- > 0) --> (--num >= 0). Obtained from: NetBSD
* Merge in NetBSD mods and -Wall cleaning.steve1996-12-141-18/+28
| | | | Obtained from: NetBSD, me
* 1) define STATIC as static and not emptyache1996-10-311-2/+20
| | | | 2) replace collate_range_cmp call with its code
* Ok, lets try this again, shall we? It was definatly my mistake, notpeter1996-09-101-16/+20
| | | | Steve's.. :-]
* ack! back these out so I can see what I did wrong. It looks like apeter1996-09-101-19/+15
| | | | patch-by-hand botch, but it sig-11's during make world.
* Fix for PR#1248, sh doesn't expand past ${9}peter1996-09-101-16/+20
| | | | Submitted by: Steve Price <sprice@hiwaay.net>
* Merge of 4.4-Lite2 sh source, plus some gcc -Wall cleaning. This is apeter1996-09-011-108/+280
| | | | | | | | | | | | | | merge of parallel duplicate work by Steve Price and myself. :-] There are some changes to the build that are my fault... mkinit.c was trying (poorly) to duplicate some of the work that make(1) is designed to do. The Makefile hackery is my fault too, the depend list was incomplete because of some explicit OBJS+= entries, so mkdep wasn't picking up their source file #includes. This closes a pile of /bin/sh PR's, but not all of them.. Submitted by: Steve Price <steve@bonsai.hiwaay.net>, peter
* Convert to newly added collate compare functionache1996-08-121-40/+4
|
* Localize itache1996-08-111-2/+40
|
* Remove trailing whitespace.rgrimes1995-05-301-8/+8
| | | | Reviewed by: phk
* Fix the deletion of trailing newlines with backquote expansion.guido1995-03-011-2/+4
| | | | | | Reviewed by: Submitted by: Obtained from:
* Added $Id$dg1994-09-241-0/+2
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-261-0/+1160
OpenPOWER on IntegriCloud