help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Checking validity of a command


From: Budi
Subject: Checking validity of a command
Date: Sun, 11 Oct 2020 10:48:53 +0700

How to check validity of a command using Bash command inside a script ?
e.g. for echo command checking, tried this

$ set -n 'echo HI' &&echo Y
Y

$ set -n 'eco HI' &&echo Y
Y

won't do the check, how to solve ?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]