mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: avoid printf '0*d' construct unsupported by ash
* tests/ln/sf-1.sh: Generate specific length with space padding which is supported. Reported by Assaf Gordon on Alpine Linux.
This commit is contained in:
1 parent
1e8c458210
commit
5ee9c8f7a6
1 file changed
+1
-1
+1
-1
@@ -37,7 +37,7 @@ esac
|
||||
name_max=$(stat -f -c %l .) && test "$name_max" -lt $((1024*1024)) ||
|
||||
name_max=1 # skip this portion of the test
|
||||
name_max_plus1=$(expr $name_max + 1)
|
||||
long_name=$(printf '%0*d' $name_max_plus1 0)
|
||||
long_name=$(printf '%*s' $name_max_plus1 | tr ' ' '0')
|
||||
|
||||
for f in '' f; do
|
||||
ln -s$f missing ENOENT_link || fail=1
|
||||
|
||||
Reference in new issue
Block a user