Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
aports
aports
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 649
    • Issues 649
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 180
    • Merge Requests 180
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • aportsaports
  • Issues
  • #8236

Closed
Open
Opened Dec 04, 2017 by paul morgan@jumanjiman
  • Report abuse
  • New issue
Report abuse New issue

My bash script stopped working (hangs) after upgrading to v3.7

Given this script:

#!/bin/bash

# https://github.com/koalaman/shellcheck/wiki/SC2044
while IFS= read -r -d '' file; do
  echo -n checking "${file}"

  # This works on alpine 3.6 but hangs on 3.7 and edge.
  if stat -c %F "${file}" | grep -qE '^directory$'; then
    echo " DIRECTORY"
  else
    echo
  fi

done < <(find /etc -maxdepth 1 -print0)

It works on alpine 3.6.

However, it hangs on alpine 3.7 and edge after it prints

checking /etc

.

(from redmine: issue id 8236, created on 2017-12-04, closed on 2017-12-12)

  • Changesets:
    • Revision ffcbff62 by Natanael Copa on 2017-12-07T22:18:05Z:
main/bash: fix overflow in jobs

fixes #8236
  • Revision 3239e62f by Natanael Copa on 2017-12-07T22:25:19Z:
main/bash: fix overflow in jobs

fixes #8236

ref: https://github.com/tianon/docker-bash/issues/4
ref: https://github.com/gliderlabs/docker-alpine/issues/363
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
3.7.1
Milestone
3.7.1 (Past due)
Assign milestone
Time tracking
None
Due date
None
2
Labels
Normal type:bug
Assign labels
  • View project labels
Reference: alpine/aports#8236