CLI argument to shell example callback
Save state of netconf chunked framing between inputs Treat EBADF in internal protocol (triggered by freebsd+notifications) Test: chunked encoding: use printf instead of echo
This commit is contained in:
parent
ac7673bc35
commit
ecac027d18
7 changed files with 45 additions and 17 deletions
|
|
@ -375,13 +375,8 @@ function chunked_framing()
|
|||
{
|
||||
str=$1
|
||||
length=${#str}
|
||||
echo -n "
|
||||
#${length}
|
||||
"
|
||||
echo -n "$str"
|
||||
echo -n "
|
||||
##
|
||||
"
|
||||
|
||||
printf "\n#%s\n%s\n##\n" ${length} "${str}"
|
||||
}
|
||||
|
||||
# Start backend with all varargs.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
# autocli extension strict expansion
|
||||
# See https://github.com/clicon/clixon/issues/163
|
||||
# test is: add a couple of expansion alternatives, ensure cli cannot select any oother option
|
||||
# test is: add a couple of expansion alternatives, ensure cli cannot select any other option
|
||||
|
||||
# Magic line must be first in script (see README.md)
|
||||
s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue