<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="static/style.xsl"?><OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"><responseDate>2026-11-22T19:07:11Z</responseDate><request verb="GetRecord" identifier="oai:uwspace.uwaterloo.ca:10012/17036" metadataPrefix="dim">https://dspacemainprd01.lib.uwaterloo.ca/server/oai/request</request><GetRecord><record><header><identifier>oai:uwspace.uwaterloo.ca:10012/17036</identifier><datestamp>2025-03-26T23:36:15Z</datestamp><setSpec>com_10012_9924</setSpec><setSpec>com_10012_1</setSpec><setSpec>col_10012_9930</setSpec><setSpec>col_10012_6</setSpec></header><metadata><dim:dim xmlns:dim="http://www.dspace.org/xmlns/dspace/dim" xmlns:doc="http://www.lyncode.com/xoai" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dspace.org/xmlns/dspace/dim http://www.dspace.org/schema/dim.xsd">
   <dim:field mdschema="dc" element="contributor" qualifier="advisor">Sun, Chengnian</dim:field>
   <dim:field mdschema="dc" element="contributor" qualifier="author" authority="1a9faa98-a936-4eb8-98a2-31afddc001db" confidence="600">Li, Zheyang</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="accessioned">2021-05-27T19:00:42Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="available">2021-05-27T19:00:42Z</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="issued">2021-05-27</dim:field>
   <dim:field mdschema="dc" element="date" qualifier="submitted">2021-05-20</dim:field>
   <dim:field mdschema="dc" element="identifier" qualifier="uri">http://hdl.handle.net/10012/17036</dim:field>
   <dim:field mdschema="dc" element="description" qualifier="abstract" lang="en">The Bourne-again shell (Bash) is a prevalent scripting&#xd;
language for orchestrating shell commands and managing&#xd;
resources in Unix-like environments. At the time of&#xd;
writing, it is one of the mainstream shell dialects that is&#xd;
available on most GNU Linux systems. However, the unique&#xd;
syntax and semantic of shell languages could easily lead to&#xd;
unintended behaviors if carelessly used. Prior studies&#xd;
primarily focused on replacing Bash with different&#xd;
languages and there is not much empirical evidence studying&#xd;
the usage of the Bash itself in practice.&#xd;
&#xd;
In this study, we perform a wide-ranging empirical study of&#xd;
Bash usage, based on an analysis over one million&#xd;
open-source Bash scripts found in Github repositories. We&#xd;
identify and discuss which features and utilities of Bash&#xd;
are most often used. Using static analysis, we find that&#xd;
Bash scripts are often error prone, and the error-proneness&#xd;
has a moderately positive correlation with the size of the&#xd;
script. We also find that the most common problem areas&#xd;
concern quoting, resource management, command options,&#xd;
permissions, and error handling. We envision that the&#xd;
findings of this study can be beneficial for learning Bash&#xd;
and future studies that aim to improve shell and&#xd;
command-line productivity and reliability. In addition, we&#xd;
provide a large dataset of Bash script source code,&#xd;
parse trees and code smell reports of each collected&#xd;
Bash script to facilitate future research in Bash language.</dim:field>
   <dim:field mdschema="dc" element="language" qualifier="iso" lang="en">en</dim:field>
   <dim:field mdschema="dc" element="publisher" lang="en">University of Waterloo</dim:field>
   <dim:field mdschema="dc" element="relation" qualifier="uri" lang="en">http://bit.ly/37PLx3n</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">software engineering</dim:field>
   <dim:field mdschema="dc" element="subject" lang="en">empirical study</dim:field>
   <dim:field mdschema="dc" element="title" lang="en">An Empirical Study on Bash Language Usage in Github</dim:field>
   <dim:field mdschema="dc" element="type" lang="en">Master Thesis</dim:field>
   <dim:field mdschema="dc" element="pending">false</dim:field>
   <dim:field mdschema="uws-etd" element="degree" qualifier="department" lang="en">David R. Cheriton School of Computer Science</dim:field>
   <dim:field mdschema="uws-etd" element="degree" qualifier="discipline" lang="en">Computer Science</dim:field>
   <dim:field mdschema="uws-etd" element="degree" qualifier="grantor" lang="en">University of Waterloo</dim:field>
   <dim:field mdschema="uws-etd" element="degree" lang="en">Master of Mathematics</dim:field>
   <dim:field mdschema="uws-etd" element="embargo" qualifier="terms" lang="en">0</dim:field>
   <dim:field mdschema="uws" element="contributor" qualifier="advisor">Sun, Chengnian</dim:field>
   <dim:field mdschema="uws" element="contributor" qualifier="affiliation1" lang="en">Faculty of Mathematics</dim:field>
   <dim:field mdschema="uws" element="published" qualifier="city" lang="en">Waterloo</dim:field>
   <dim:field mdschema="uws" element="published" qualifier="country" lang="en">Canada</dim:field>
   <dim:field mdschema="uws" element="published" qualifier="province" lang="en">Ontario</dim:field>
   <dim:field mdschema="uws" element="typeOfResource" lang="en">Text</dim:field>
   <dim:field mdschema="uws" element="peerReviewStatus" lang="en">Unreviewed</dim:field>
   <dim:field mdschema="uws" element="scholarLevel" lang="en">Graduate</dim:field>
   <dim:field mdschema="others" element="access-status">open.access</dim:field>
</dim:dim>
</metadata></record></GetRecord></OAI-PMH>