代码搜索:positional
找到约 115 项符合「positional」的源代码
代码结果 115
www.eeworm.com/read/168845/5436167
cpp positional_options_test.cpp
// Copyright Vladimir Prus 2004.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#incl
www.eeworm.com/read/375190/2740017
cpp positional_options_test.cpp
// Copyright Vladimir Prus 2004.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#include
www.eeworm.com/read/458682/7291468
sh ifs-empty.sh
#!/bin/bash
# If $IFS set, but empty,
#+ then "$*" and "$@" do not echo positional params as expected.
mecho () # Echo positional parameters.
{
echo "$1,$2,$3";
}
IFS="" # Set, but
www.eeworm.com/read/339483/12230765
sh ifs-empty.sh
#!/bin/bash
# If $IFS set, but empty,
#+ then "$*" and "$@" do not echo positional params as expected.
mecho () # Echo positional parameters.
{
echo "$1,$2,$3";
}
IFS="" # Set, but
www.eeworm.com/read/167987/9942773
args
#!/bin/sh
# Script name: args
# Script to test command line arguments
echo The name of this script is $0.
echo The arguments are $*.
echo The first argument is $1.
echo The second argument is $2.
ech
www.eeworm.com/read/116739/14956458
args
#!/bin/sh
# Script name: args
# Script to test command line arguments
echo The name of this script is $0.
echo The arguments are $*.
echo The first argument is $1.
echo The second argument is $2.
ech
www.eeworm.com/read/167987/9942618
args
#!/bin/ksh
# Script name: args
# Example 10.80
# Script to test command line arguments
if [ $# == 0 ] ; then
print \
"Usage: $(basename $0) arg1 arg2 ... argn" \
1>&2
exit 1
fi
print T
www.eeworm.com/read/458682/7291479
sh revposparams.sh
#!/bin/bash
# revposparams.sh: Reverse positional parameters.
# Script by Dan Jacobson, with stylistic revisions by document author.
set a\ b c d\ e;
# ^ ^ Spaces escaped
# ^ ^
www.eeworm.com/read/101082/6244912
1 getopt.1
.TH getopt 1
.SH Name
getopt \- parse command options
.SH Syntax
.NXR "getopt command"
.B set \- \- \*\`getopt optstring
.B $\(**\*\`
.SH Description
.NXR "getopt command"
The
.PN getopt
command
break
www.eeworm.com/read/101082/6246782
1 getopt.1
.TH getopt 1
.SH Name
getopt \- parse command options
.SH Syntax
.NXR "getopt command"
.B set \- \- \*\`getopt optstring
.B $\(**\*\`
.SH Description
.NXR "getopt command"
The
.PN getopt
command
break