mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
document prompt in shell script mode, fix man formatting, legacy awk
Documented unexpected behavior when calc is running in "shell script mode" and the prompt builtin function is used without the -p flag. Updated help/prompt, help/unexpected and the calc man page accordingly. Unless calc is given the -p command line option, calc will reopen stdin as /dev/null instead of just closing stdin. This prevents subsequent opens grabbing the 1st file descriptor. Disable regress tests 4709, 4710, and 7763 because they print multi-byte sequences, which are just fine for calc, the awk used to evaluate the regression suite output in some legacy systems report a "multibyte conversion failure". Added a number of missing Makefile variables to the "make env" rule. The man command is used to format the calc.1 man page into calc.usage. The "help calc" command now prints the formatted calc man page (calc.usage). The "help man" command now prints the formatted calc man page (calc.usage). The "help usage" command now prints the formatted calc man page (calc.usage). The file, calc.cat1, is formed by gzipping the calc.usage formatted man page. The calc.cat1 is installed as the calc cat section 1 man page. Updated the Copyright string in version.c to refer to the COPYING file and the "help copying" command. Added calc.cat1 to .gitignore. Using "sort -d -u" to sort .gitignore content. Avoiding use of modern [[ and ]] in Makefile for those legacy systems whose shell do not support them. *sigh* Fixed the order of "help full" to match the order of topics listed buy the "help help" command. Sorted the halias[] help topics table in help.c using sort -d -u.
This commit is contained in:
@@ -4879,8 +4879,9 @@ define test_charset()
|
||||
vrfy("\123" == char(0123), '4706: "\\123" == char(0123)');
|
||||
vrfy("\123\124" == "ST", '4707: "\\123\\124" == "ST"');
|
||||
vrfy("\311" == char(201), '4708: "\\311" == char(201)');
|
||||
vrfy("\119" == "\t9", '4709: "\\119" == "\t9"');
|
||||
vrfy("\765" == "\365", '4710: "\\765" == "\365"');
|
||||
/* NOTE: We skip non-ASCII to avoid problems with old awk that cannot handle them */
|
||||
/* vrfy("\119" == "\t9", '4709: "\\119" == "\t9"'); */
|
||||
/* vrfy("\765" == "\365", '4710: "\\765" == "\365"'); */
|
||||
vrfy("\x61" == "a", '4711: "\\x61" == "a"');
|
||||
vrfy("\x73" == "s", '4712: "\\x73" == "s"');
|
||||
vrfy("\xea" == char(234), '4713: "\\xea" == char(234)');
|
||||
@@ -8191,7 +8192,8 @@ define test_newstring()
|
||||
vrfy(A == "A\255gdef", '7761: A == "A\\255gdef"');
|
||||
setbit(A, 16, 0);
|
||||
print '7762: setbit(A, 16, 0);';
|
||||
vrfy(A == "A\255fdef", '7763: A == "A\255fdef"');
|
||||
/* NOTE: We skip non-ASCII to avoid problems with old awk that cannot handle them */
|
||||
/* vrfy(A == "A\255fdef", '7763: A == "A\255fdef"'); */
|
||||
|
||||
q = "curds" " and " "whey";
|
||||
print '7764: q = "curds" " and " "whey"';
|
||||
|
Reference in New Issue
Block a user