From the course: Troubleshooting and Debugging Bash
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Cross-platform quirks - Bash Tutorial
From the course: Troubleshooting and Debugging Bash
Cross-platform quirks
- [Instructor] Sometimes, you find exactly what you need. You're researching your scripts, you're looking for someone else's work to use, you're trying to pick pieces apart, you find the perfect thing, but it was written for a different operating system. This problem comes about because Bash is so everywhere that it's available, on Mac, it's on Linux, all the different variants of Unix, and now, Windows. Bash scripting, while technically possible in Windows however, is not widely supported, and, add to that, that Windows and Linux require different line endings in their script files, so you need to use a Windows text editor that supports artificially changing the line endings to be Unix-compatible, work within another platform. On top of that, you can't run any Windows executables by calling them from the Bash script that you run, on Windows. Overall, that functionality starts to lose its luster in the Windows environment.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.