~s1986q/mksh/mksh

« back to all changes in this revision

Viewing changes to Build.sh

  • Committer: tg
  • Date: 2017-05-05 22:59:36 UTC
  • Revision ID: tg-20170505225936-27a1wzss4yomzuqw
oops, reverted not enough in commitid 1005909EE7C16B07DC3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
 
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.723 2017/05/03 14:51:14 tg Exp $'
 
2
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.724 2017/05/05 22:59:36 tg Exp $'
3
3
#-
4
4
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5
5
#               2011, 2012, 2013, 2014, 2015, 2016, 2017
2455
2455
        if $ebcdic; then
2456
2456
                args[\${#args[*]}]=-E
2457
2457
        fi
 
2458
        x=
2458
2459
        for y in "\${check_categories[@]}"; do
2459
2460
                x=\$x,\$y
2460
2461
        done
2461
2462
        if [[ -n \$x ]]; then
2462
2463
                args[\${#args[*]}]=-C
2463
 
                args[\${#args[*]}]=\$x
 
2464
                args[\${#args[*]}]=\${x#,}
2464
2465
        fi
2465
2466
        if (( usee )); then
2466
2467
                args[\${#args[*]}]=-e