Giter Site home page Giter Site logo

mars_task1's Introduction

PROBLEM 4


single quotes (' ')

  • single quotes preserves the literal value of each character within the quotes, without any exception.
  • example: if a=abcd , this implies the expression '$a' will result in $a as, it has no specific meaning.

double quotes (" ")

  • preserves the literal value of all characters within the quotes, with the exception of $, \ ," etc.
  • example: if a=abcd , this implies the expression '$a' will result in abcd while considering it as a variable and expanding its value.

PROBLEM 5


  • export is a built-in bash function that can be used to declare a variable from the current shell, such that it can be used in any process within the shell.
  • declaring a variable without shell will make it so that the variable is avialable only to the shell and not the processes.
  • export, being a built-in function, gets directly interpreted by bash and thus can be used in external programs only within bash -c "export sample=1; echo $sample"
  • Now, in the given case when 'export rovername=vajra' is executed, even when a new shell session is started with $bash the variable rovername is recoganised to have the value vajra, and echo $rovername will give vajra as output.
  • where as when 'rovername=vajra' is executed, after changing the shell session the variable will not be recoganised, and if we try echo $rovername there'll be a blank output

mars_task1's People

Contributors

camelotsb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.