{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,5,3]],"date-time":"2025-05-03T02:23:07Z","timestamp":1746238987479},"reference-count":16,"publisher":"World Scientific Pub Co Pte Lt","issue":"02","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Int. J. Soft. Eng. Knowl. Eng."],"published-print":{"date-parts":[[2019,2]]},"abstract":"<jats:p> Modern shell scripts provide interfaces with rich functionality for system administration. However, it is not easy for end-users to write correct shell scripts; misusing commands may cause unpredictable results. In this paper, we present SmartShell, an automated function-based tool for shell script synthesis, which uses natural language descriptions as input. It can help the computer system to \u201cunderstand\u201d users\u2019 intentions. SmartShell is based on two insights: (1) natural language descriptions for system objects (such as files and processes) and operations can be recognized by natural language processing tools; (2) system-administration tasks are often completed by short shell scripts that can be automatically synthesized from natural language descriptions. SmartShell synthesizes shell scripts in three steps: (1) using natural language processing tools to convert the description of a system-administration task into a syntax tree; (2) using program-synthesis techniques to construct a SmartShell intermediate-language script from the syntax tree; (3) translating the intermediate-language script into a shell script. Experimental results show that SmartShell can successfully synthesize 53.7% of tasks collected from shell-script helping forums. <\/jats:p>","DOI":"10.1142\/s0218194019500098","type":"journal-article","created":{"date-parts":[[2019,3,1]],"date-time":"2019-03-01T01:40:21Z","timestamp":1551404421000},"page":"197-220","source":"Crossref","is-referenced-by-count":3,"title":["SmartShell: Automated Shell Scripts Synthesis from Natural Language"],"prefix":"10.1142","volume":"29","author":[{"given":"Hao","family":"Li","sequence":"first","affiliation":[{"name":"Tsinghua National Laboratory for Information Science and Technology (TNList), Department of Computer Science and Technology, Tsinghua University, Beijing 100084, China"}]},{"given":"Yu-Ping","family":"Wang","sequence":"additional","affiliation":[{"name":"Tsinghua National Laboratory for Information Science and Technology (TNList), Department of Computer Science and Technology, Tsinghua University, Beijing 100084, China"}]},{"given":"Jie","family":"Yin","sequence":"additional","affiliation":[{"name":"Tsinghua National Laboratory for Information Science and Technology (TNList), Department of Computer Science and Technology, Tsinghua University, Beijing 100084, China"}]},{"given":"Gang","family":"Tan","sequence":"additional","affiliation":[{"name":"School of Electrical Engineering and Computer Science, Pennsylvania State University, University Park, PA, USA"}]}],"member":"219","published-online":{"date-parts":[[2019,2,28]]},"reference":[{"key":"S0218194019500098BIB001","first-page":"1689","volume-title":"Handbook of Human Factors and Ergonomics","volume":"2","author":"Liu Y.","year":"1997"},{"key":"S0218194019500098BIB003","doi-asserted-by":"publisher","DOI":"10.1145\/1925844.1926423"},{"key":"S0218194019500098BIB004","doi-asserted-by":"publisher","DOI":"10.1145\/2666356.2594297"},{"key":"S0218194019500098BIB005","volume-title":"Visual Programming","author":"Shu N. C.","year":"1988"},{"key":"S0218194019500098BIB006","doi-asserted-by":"publisher","DOI":"10.1016\/S0098-3004(02)00031-6"},{"key":"S0218194019500098BIB009","volume-title":"Foundations of Statistical Natural Language Processing","author":"Manning C. D.","year":"1999"},{"key":"S0218194019500098BIB010","doi-asserted-by":"publisher","DOI":"10.1145\/357084.357090"},{"key":"S0218194019500098BIB011","doi-asserted-by":"publisher","DOI":"10.1145\/362566.362568"},{"key":"S0218194019500098BIB012","doi-asserted-by":"publisher","DOI":"10.1016\/0004-3702(85)90083-9"},{"key":"S0218194019500098BIB013","doi-asserted-by":"publisher","DOI":"10.1145\/1707801.1706337"},{"key":"S0218194019500098BIB018","first-page":"455","author":"Socher R.","year":"2013","journal-title":"ACL"},{"key":"S0218194019500098BIB019","doi-asserted-by":"publisher","DOI":"10.1002\/cfg.457"},{"key":"S0218194019500098BIB022","first-page":"219","volume-title":"The Oxford Handbook of Computational Linguistics","author":"Voutilainen A.","year":"2003"},{"key":"S0218194019500098BIB023","volume-title":"Speech and Language Processing","author":"Martin J. H.","year":"2008","edition":"2"},{"key":"S0218194019500098BIB024","doi-asserted-by":"publisher","DOI":"10.1137\/0205011"},{"key":"S0218194019500098BIB031","doi-asserted-by":"publisher","DOI":"10.1145\/1323293.1294276"}],"container-title":["International Journal of Software Engineering and Knowledge Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.worldscientific.com\/doi\/pdf\/10.1142\/S0218194019500098","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2019,8,7]],"date-time":"2019-08-07T13:13:42Z","timestamp":1565183622000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.worldscientific.com\/doi\/abs\/10.1142\/S0218194019500098"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2019,2]]},"references-count":16,"journal-issue":{"issue":"02","published-online":{"date-parts":[[2019,2,28]]},"published-print":{"date-parts":[[2019,2]]}},"alternative-id":["10.1142\/S0218194019500098"],"URL":"https:\/\/doi.org\/10.1142\/s0218194019500098","relation":{},"ISSN":["0218-1940","1793-6403"],"issn-type":[{"value":"0218-1940","type":"print"},{"value":"1793-6403","type":"electronic"}],"subject":[],"published":{"date-parts":[[2019,2]]}}}