3aa99676b4
This version fixes a regression with regard to tradtional behavior of the non-standard FreeBSD option "-e". In the previous version "-e quit" caused bc to exit before any computations had been performed, since all -e option parameters were concatenated and parsed as a whole, with quit causing the program to exit as soon as it was parsed. This version parses and executes commands passed with -e one by one and only exits after all prior commands have been executed. This commit is not a SVN merge, since the vendor import had been performed after the import to contrib. Instead the contents of contrib/bc has been removed and the new version is copied over unchanged from vendor/bc/dist.
112 lines
3.9 KiB
Plaintext
112 lines
3.9 KiB
Plaintext
$ $
|
||
$ SPDX-License-Identifier: BSD-2-Clause
|
||
$ $
|
||
$ Copyright (c) 2018-2020 Gavin D. Howard and contributors.
|
||
$ $
|
||
$ Redistribution and use in source and binary forms, with or without
|
||
$ modification, are permitted provided that the following conditions are met:
|
||
$ $
|
||
$ * Redistributions of source code must retain the above copyright notice, this
|
||
$ list of conditions and the following disclaimer.
|
||
$ $
|
||
$ * Redistributions in binary form must reproduce the above copyright notice,
|
||
$ this list of conditions and the following disclaimer in the documentation
|
||
$ and/or other materials provided with the distribution.
|
||
$ $
|
||
$ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||
$ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
$ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
$ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||
$ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||
$ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||
$ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||
$ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||
$ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||
$ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||
$ POSSIBILITY OF SUCH DAMAGE.
|
||
$ $
|
||
|
||
$quote "
|
||
|
||
$ <20> §ë¥ á®®¡é¥¨ï.
|
||
$set 1
|
||
|
||
1 "”ãªæ¨ï:"
|
||
|
||
$ ’¨¯ë ®è¨¡®ª.
|
||
$set 2
|
||
|
||
1 "Œ ⥬ â¨ç¥áª ï ®è¨¡ª :"
|
||
2 "Žè¨¡ª ¯à¨ à §¡®à¥:"
|
||
3 "Žè¨¡ª ¢ë¯®«¥¨ï:"
|
||
4 "” â «ì ï ®è¨¡ª :"
|
||
5 "<22>।ã¯à¥¦¤¥¨¥:"
|
||
|
||
$ Œ ⥬ â¨ç¥áª¨¥ ®è¨¡ª¨.
|
||
$set 3
|
||
|
||
1 "®âà¨æ ⥫쮥 ç¨á«®"
|
||
2 "¥¨â¥£à¨à®¢ ®¥ ç¨á«®"
|
||
3 "¯¥à¥¯®«¥¨¥: ®¬¥à ¥ ¯®¬¥é ¥âáï ¢ ¯¯ à âë© ®¬¥à"
|
||
4 "¤¥«¨âì 0"
|
||
|
||
$ Žè¨¡ª¨ ¯à¨ à §¡®à¥.
|
||
$set 4
|
||
|
||
1 "ª®¥æ ä ©« "
|
||
2 "¥¤®¯ãáâ¨¬ë© á¨¬¢®« '%c'"
|
||
3 "ª®¥æ áâப¨ ¥ ©¤¥"
|
||
4 "ª®¥æ ª®¬¬¥â à¨ï ¥ ©¤¥"
|
||
5 "¥¤¥©á⢨⥫ìë© ¦¥â®"
|
||
6 "¥¯à ¢¨«ì®¥ ¢ëà ¦¥¨¥"
|
||
7 "¯ãá⮥ ¢ëà ¦¥¨¥"
|
||
8 "§ ¥¨¥ ® ¥¤¥©á⢨⥫ì®á⨠¯¥ç â¨"
|
||
9 "®¯à¥¤¥«¥¨¥ ¥¤¥©á⢨⥫쮩 äãªæ¨¨"
|
||
10 "¥¢¥à®¥ ¯à¨á¢®¥¨¥: «¥¢ ï áâ®à® ¤®«¦ ¡ëâì scale, ibase, obase, last, ¢ ஬ ¨«¨ í«¥¬¥â®¬ ¬ áᨢ "
|
||
11 " ¢â®¬ â¨ç¥áª ï ¯¥à¥¬¥ ï ¥ ©¤¥ "
|
||
12 "¯ à ¬¥âà äãªæ¨¨ ¨«¨ auto \"%s%s\" 㦥 áãé¥áâ¢ã¥â"
|
||
13 "ª®¥æ ¡«®ª ¥ ©¤¥"
|
||
14 "¥ ¬®¦¥â ¢¥àãâì § 票¥ ¨§ äãªæ¨¨ void: %s()"
|
||
15 "var ¥ ¬®¦¥â ¡ëâì áá뫪®©: %s"
|
||
16 "POSIX ¥ ¤®¯ã᪠¥â ¨¬¥ ¤«¨¥¥ 1 ᨬ¢®« : %s"
|
||
17 "POSIX ¥ ¤®¯ã᪠¥â ª®¬¬¥â ਥ¢ ª áæ¥ à¨î '#'"
|
||
18 "POSIX ¥ ¤®¯ã᪠¥â á«¥¤ãî饥 ª«î祢®¥ á«®¢®: %s"
|
||
19 "POSIX ¥ ¤®¯ã᪠¥â â®çªã ('.') ¢ ª ç¥á⢥ ïà«ëª ¤«ï ¯®á«¥¤¥£® १ã«ìâ â "
|
||
20 "POSIX âॡã¥â ᪮¡®ª ¢®ªà㣠¢ëà ¦¥¨© ¢®§¢à â "
|
||
21 "POSIX ¥ à §à¥è ¥â ¨á¯®«ì§®¢ âì á«¥¤ãî騩 ®¯¥à â®à: %s"
|
||
22 "POSIX ¥ à §à¥è ¥â ®¯¥à â®à ¬ áà ¢¥¨ï ¢ë室¨âì § ¯à¥¤¥«ë, ¥á«¨ ã⢥ত¥¨ï ¨«¨ 横«ë"
|
||
23 "POSIX âॡã¥â 0 ¨«¨ 1 ®¯¥à â®à áà ¢¥¨ï ãá«®¢¨¥"
|
||
24 "POSIX âॡã¥â, çâ®¡ë ¢á¥ 3 ç á⨠¯¥â«¨ ¡ë«¨ ¥¯ãáâ묨"
|
||
25 "POSIX ¥ ¤®¯ã᪠¥â íªá¯®¥æ¨ «ì®© ®â 樨"
|
||
26 "POSIX ¥ ¤®¯ã᪠¥â áá뫪¨ ¬ áᨢ ¢ ª ç¥á⢥ ¯ à ¬¥â஢ äãªæ¨¨"
|
||
27 "POSIX âॡã¥â, çâ®¡ë «¥¢ ï ᪮¡ª ¡ë« ⮩ ¦¥ «¨¨¨, çâ® ¨ § £®«®¢®ª äãªæ¨¨"
|
||
|
||
$ Žè¨¡ª¨ ¢ë¯®«¥¨ï.
|
||
$set 5
|
||
|
||
1 "<22>¥¤¥©á⢨⥫ìë© ibase: ¤®«¦¥ ¡ëâì [%lu, %lu]"
|
||
2 "<22>¥¤¥©á⢨⥫ìë© obase: ¤®«¦¥ ¡ëâì [%lu, %lu]"
|
||
3 "¥¤¥©á⢨⥫ì ï scale: ¤®«¦ ¡ëâì [%lu, %lu]"
|
||
4 "¥¤¥©á⢨⥫쮥 ¢ëà ¦¥¨¥ read()"
|
||
5 "४ãàá¨¢ë© ¢ë§®¢ read()"
|
||
6 "¯¥à¥¬¥ ï ¨«¨ í«¥¬¥â ¬ áᨢ ï¥âáï ¥¯à ¢¨«ìë¬ â¨¯®¬"
|
||
7 "á⮯ª ¨¬¥¥â ᫨誮¬ ¬ «® í«¥¬¥â®¢"
|
||
8 "¥¯à ¢¨«ì®¥ ª®«¨ç¥á⢮ ¯ à ¬¥â஢; 㦮 %zu, 㦮 %zu"
|
||
9 "¥®¯à¥¤¥«¥ ï äãªæ¨ï: %s()"
|
||
10 "¥ ¬®¦¥â ¨á¯®«ì§®¢ âì ¯ãá⮥ § 票¥ ¢ ¢ëà ¦¥¨¨"
|
||
|
||
$ ” â «ìë¥ ®è¨¡ª¨.
|
||
$set 6
|
||
|
||
1 "<22>¥ 㤠«®áì ¢ë¤¥«¨âì ¯ ¬ïâì"
|
||
2 "Žè¨¡ª ¢¢®¤ /¢ë¢®¤ "
|
||
3 "¥ ᬮ£ ®âªàëâì ä ©«: %s"
|
||
4 "ä ©« ¥ ASCII: %s"
|
||
5 "¯ãâì - íâ® ª â «®£: %s"
|
||
6 "¥¢¥à ï ®¯æ¨ï ª®¬ ¤®© áâப¨: '%c' (\"%s\")"
|
||
|
||
$set 7
|
||
|
||
1 "®¯æ¨ï âॡã¥â à£ã¬¥â : '%c' (\"%s\")"
|
||
2 "®¯æ¨ï ¥ ¯à¨¨¬ ¥â à£ã¬¥â®¢: '%c' (\"%s\")"
|