mirror of https://github.com/n-hys/bash.git
14 lines
317 B
Plaintext
14 lines
317 B
Plaintext
# shell functions to include in multiple test files
|
|
|
|
# squeeze out blanks to avoid white space differences in od implementations
|
|
_intl_normalize_spaces()
|
|
{
|
|
sed -e 's/[[:space:]]\{1,\}/ /g' -e 's/[[:space:]]*$//'
|
|
}
|
|
|
|
# avoid whitespace differences in wc implementations
|
|
_cut_leading_spaces()
|
|
{
|
|
sed -e 's/^[ ]*//g'
|
|
}
|