Giter Site home page Giter Site logo

johnsonjh / sgs-68k Goto Github PK

View Code? Open in Web Editor NEW
14.0 4.0 1.0 9.2 MB

sgs-68k: AT&T (Software Generation System) SGS for Motorola 68000, including compilers (C, FORTRAN-77, RATFOR, EFL) and tools (SCCS, cflow, ctrace, cxref, lint, prof, lex, yacc)

Home Page: https://github.com/johnsonjh/SGS-68K

C 84.77% Assembly 10.50% Limbo 0.02% Forth 0.05% Makefile 0.63% Shell 0.13% Yacc 2.59% Lex 0.25% Clean 0.13% RPC 0.69% Io 0.03% Awk 0.04% Roff 0.10% ActionScript 0.01% sed 0.02% Elixir 0.04%
sgs compiler fortran ratfor efl sccs 68000 m68k systemv

sgs-68k's Introduction

SGS-68K

  • AT&T SGS (Software Generation System) for Motorola 68000

    • C
    • FORTRAN-77
    • RATFOR
    • EFL
    • SCCS
    • cflow
    • ctrace
    • cxref
    • lint
    • prof
    • lex
    • yacc

sgs-68k's People

Contributors

codacy-badger avatar johnsonjh avatar mend-bolt-for-github[bot] avatar restyled-commits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

32bitmicro

sgs-68k's Issues

(SH-2028) `echo` used to expand escape sequences

Description

echo won't expand escape sequences. Consider using printf instead: #### Problematic code: bash echo "Name:\t$value" #### Preferred code: bash printf 'Name:\t%s\n' "$value" Backslash escapes like \t and \n are not expanded by echo, and become literal backslash-t, backslash-n. printf does expand these sequences, and should be used instead. …

Occurrences

There are 3 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/johnsonjh/sgs-68k/issue/SH-2028/occurrences/

(SH-2064) `trap` code will expand during definition

Description

With double quotes, all parameter and command expansions will expand before trap execution. Using single quotes will prevent expansion at declaration time, and save it for execution time. In the example below, the message will contain the date (and time) on which the line declaring the trap was executed, and …

Occurrences

There are 9 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/johnsonjh/sgs-68k/issue/SH-2064/occurrences/

(SH-2006) Use of legacy backtick

Description

Consider using the $(...) notation instead. Backtick command substitution \...`is legacy syntax with several issues. * It has a series of undefined behaviors related to quoting in POSIX. * It imposes a custom escaping mode with surprising results. * It's exceptionally hard to nest.$(...)` command substitution has none …

Occurrences

There are 31 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/johnsonjh/sgs-68k/issue/SH-2006/occurrences/

(SH-2048) Use `"$@"` to prevent whitespace problems

Description

$*, unquoted, is subject to word splitting and globbing. Let's say you have three arguments: baz, foo bar and * - "$@" will expand into exactly that: baz, foo bar and * - $* will expand into multiple other arguments: baz, foo, bar, file.txt and otherfile.jpg It is therefore recommended …

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/johnsonjh/sgs-68k/issue/SH-2048/occurrences/

(SH-2034) Unused variable

Description

Variables that are declared but not used for anything should be removed. #### Problematic code: bash foo=42 echo "$FOO" #### Preferred code: bash foo=42 echo "$foo" #### Exceptions: This warning may be falsely emitted when a variable is referenced indirectly, or it is intentionally not used. * Indirection: …

Occurrences

There are 2 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/johnsonjh/sgs-68k/issue/SH-2034/occurrences/

(SH-2001) Consider using `${variable//search/replace}`

Description

Consider using parameter expansion to search and replace data. In the problematic code the value is passed to sed to do this, but for simple substitutions, parameter expansion can do it with less overhead. #### Problematic code: bash string="stirng" ; echo "$string" | sed -e "s/ir/ri/" #### Preferred code: …

Occurrences

There are 5 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/johnsonjh/sgs-68k/issue/SH-2001/occurrences/

(SH-2046) Consider quoting command expansion to prevent word splitting

Description

When command expansions are unquoted, word splitting and globbing will occur. This can result unintended behaviour filenames contain spaces. Trying to fix it by adding quotes or escapes to the data will not work. Instead, quote the command substitution itself. If the command substitution outputs multiple pieces of data, it …

Occurrences

There are 2 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/johnsonjh/sgs-68k/issue/SH-2046/occurrences/

(SH-2003) Outdated `expr` statement

Description

According to POSIX: > The expr utility has a rather difficult syntax [...] In many cases, the arithmetic and string features provided as part of the shell command language are easier to use than their equivalents in expr. Newly written scripts should avoid expr in favor of the new features …

Occurrences

There are 12 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/johnsonjh/sgs-68k/issue/SH-2003/occurrences/

(SH-2068) Double quote array expansions to avoid re-splitting elements

Description

Double quotes around $@ (and similarly, ${array[@]}) prevents globbing and word splitting of individual elements, while still expanding to multiple separate arguments. Let's say you have four arguments: baz, foo bar, * and /*/*/*/*. "$@" will expand into exactly that: baz, foo bar, * and /*/*/*/*. $@ will expand into …

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/johnsonjh/sgs-68k/issue/SH-2068/occurrences/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.