Ready to be published? LXer is read by around 350,000 individuals each month, and is an excellent place for you to publish your ideas, thoughts, reviews, complaints, etc. Do you have something to say to the Linux community?
Bash shopt command explained with examples. Shopt(SHell OPTions) is a built-in command to change the properties of a shell such as..Its history behavior, Spell check, Enable special characters for echo command by default and many more.
Bash shopt command explained with examples
Shopt(SHell OPTions) is a built-in command to change the properties of a shell such as..
Its history behavior
Spell check
Enable special characters for echo command by default
and many more.
This is an excellent command which give more control on Shell for you when you are working on bash and sh shells. This command is available after bash v2 and not available in other shells such as ksh, csh etc. Lets get familiarize with shopt command with some examples.
Example1: To enable an option with shopt you have to use -s (Set) option
A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.
Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help