Merge branch 'master' into forth

This commit is contained in:
Thomas Hobson 2022-06-03 12:22:00 +12:00 committed by GitHub
commit 1d6bbe3ea9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 1 deletions

View File

@ -1,3 +1,19 @@
#!/bin/bash #!/bin/bash
sqlite3 < "$1" code=`cat "$1"`
shift
argv_text=""
for arg in "$@"
do
argv_text+='insert into argv (arg) values ("'"`echo "$arg" | sed 's/"/""/g'`"'");
'
done
sqlite3 <<< "create table argv (arg text);
$argv_text
$code"