Skip to content

A transpiler from bash script to fish script INCOMPLETE & BAD

Notifications You must be signed in to change notification settings

lib-crash/bash-to-fish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bash-to-fish

A transpiler from bash script to fish script

WARNING INCOMPLETE AND NOT RECOMMENDED FOR ACTUAL USAGE

usage

usage: bash-to-fish.sh [OPTIONS] <bash file> [fish file]
description:
  it tries to convert all bash syntax to fish syntax
  and then prints it to stdout. Or writes it to given
  fish file.
options:
  --debug
  --run       run transpiled script directly in fish

example

convert bash script to fish and then run it

fish$ ./bash-to-fish.sh myscript.sh output.fish
fish$ ./output.fish

run fish script directly in fish no matter from which shell

bash$ ./bash-to-fish.sh --run myscript.sh

About

A transpiler from bash script to fish script INCOMPLETE & BAD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages