GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — scripts/decode_stacktrace.sh: strip unexpected CR from lines · diffuzor2a9/BPI-Router-Linux@436efd9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • scripts
    • decode_stacktrace.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎scripts/decode_stacktrace.sh‎

Copy file name to clipboardExpand all lines: scripts/decode_stacktrace.sh
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,9 @@ handle_line() {
291291
}
292292

293293
while read line; do
294+
# Strip unexpected carriage return at end of line
295+
line=${line%$'\r'}
296+
294297
# Let's see if we have an address in the line
295298
if [[ $line =~ \[\<([^]]+)\>\] ]] ||
296299
[[ $line =~ [^+\ ]+\+0x[0-9a-f]+/0x[0-9a-f]+ ]]; then

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.