index

Recherche

Voici les résultats de votre recherche.

positional-parameters
6 Occurrences trouvées, Dernière modification :
day will come when you want to give arguments to your scripts. These arguments are known as **positiona... ing them ===== Enough theory, you want to access your script-arguments. Well, here we go. ==== One by ... to the script or function. If you want to re-use your positional parameters to **call another program**... ples ===== ==== Using a while loop ==== To make your program accept options as standard command syntax
quoting
6 Occurrences trouvées, Dernière modification :
portant, as they influence the way Bash acts upon your input. There are three recognized types: * **pe... and thus effectively ignored. Use it to beautify your code: <code> # escapestr_sed() # read a stream fr... ile named ''*'', spit out an error. <code> echo "Your PATH is: $PATH" </code> Will work as expected. ''... ingle-quote that closes the string. <code> echo 'Your PATH is: $PATH' </code> ''$PATH'' won't be expand
redirection
5 Occurrences trouvées, Dernière modification :
the file descriptors 0, 1 and 2, all connected to your terminal: ^Name^FD^Description^ |''stdin''|0|stan... to the same device, the **terminal** here. Check your preferred UNIX(r)-FAQ for details, I'm too lazy t... atively easy: * initially, ''stdout'' points to your terminal (you read it) * same applies to ''stderr'', it's connected to your terminal * ''2>&1'' redirects ''stderr'' away f
check-script
4 Occurrences trouvées, Dernière modification :
The one of the simplest way to check your bash/sh scripts is run it and check it output or run it and ch... ub.com/pahaz/bashtest|bashtest]] tool for testing your scripts. https://wiki.bash-hackers.org/howto/testing-your-scripts ==== Write simple util ==== We have a s... test | bashtest github repo]]. You can also write your question or report a bug [[https://github.com/pah
obsolete
1 Occurrences trouvées, Dernière modification :
ing ''declare'' instead of ''typeset'' emphasizes your intention to be "Bash-only", and definitely break
  • index.txt
  • Dernière modification : 2022/11/08 16:43
  • de 127.0.0.1