mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 08:14:24 +02:00
Add "rev" command replacement if needed.
This commit is contained in:
parent
72bcd7993d
commit
6bf2efa267
@ -320,6 +320,12 @@ have_prog()
|
|||||||
jot() {
|
jot() {
|
||||||
awk "BEGIN { for (i = $2; i < $2 + $1; i++) { printf \"%d\n\", i } exit }"
|
awk "BEGIN { for (i = $2; i < $2 + $1; i++) { printf \"%d\n\", i } exit }"
|
||||||
}
|
}
|
||||||
|
if [ ! -x "`which rev`" ]; then
|
||||||
|
rev()
|
||||||
|
{
|
||||||
|
awk '{for (i=length; i>0; i--) printf "%s", substr($0, i, 1); print ""}'
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
# Check whether preprocessor symbols are defined in config.h.
|
# Check whether preprocessor symbols are defined in config.h.
|
||||||
config_defined ()
|
config_defined ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user