I want to write a shell script that calls two other programs, in sequence with && , but also allows customizing the arguments of each one, by passing arguments to my script, separated by the traditional -- . I don't want my script to need to be updated if the two programs change, so I don't want to rely on any specifics about the way those programs process arguments. I want to correctly handle edge cases like passing arguments involving spaces...
Originally asked by Ryan1729 on Stack Exchange (unix) (CC BY-SA 4.0).