Comments for 三分热度://柴锋 https://chaifeng.com 凡事总有个三分热度 Mon, 02 Dec 2024 14:32:58 +0000 hourly 1 https://wordpress.org/?v=6.8.5 Comment on 关于 Bash 的 10 个常见误解 by 为 Bash 脚本写单元测试 | 三分热度://柴锋 https://chaifeng.com/misunderstandings-about-bash/#comment-971444 Mon, 02 Dec 2024 14:32:58 +0000 https://chaifeng.com/?p=1535#comment-971444 […] Bash 脚本总是不稳定?难道真的是 Bash 不严禁不稳定吗?另外还有《关于 Bash 的 10 个常见误解》,看看你有多少误解。以及在学习和掌握运维技术栈时,除了 Bash […]

]]>
Comment on 为什么 Bash 脚本总是不稳定? by guoyiz https://chaifeng.com/bash-sucks/#comment-960387 Sun, 16 Jul 2023 23:54:12 +0000 https://chaifeng.com/?p=1569#comment-960387 今年开始多写bash脚本了,尤其在bashrc里,想到过测试,但一直没顾上,而今天在自己写的某查找文件的函数发现了bug才想到搜搜bash测试框架。。。然后找到了bach,不过在Windows git bash未能一下子跑通。https://github.com/bach-sh/bach/issues/11

我一直也想认识一位bash高手,看到你代码觉得你显然是,这语言至少对我可能是最难学的,所需的思维方式比较不一样。

非常感谢您!

]]>
Comment on 关于 Bash 的 10 个常见误解 by qfh https://chaifeng.com/misunderstandings-about-bash/#comment-940938 Mon, 01 Feb 2021 14:22:43 +0000 https://chaifeng.com/?p=1535#comment-940938 什么时候来片重定向的文章呀

]]>
Comment on 为什么 Bash 脚本总是不稳定? by cirry https://chaifeng.com/bash-sucks/#comment-939323 Mon, 07 Dec 2020 04:04:36 +0000 https://chaifeng.com/?p=1569#comment-939323 以后没事干就来翻翻大佬的博客学习学习,哈哈

]]>
Comment on 不用禁用 iptables 来解决 UFW 和 Docker 的安全问题 by UFW/iptables对Docker镜像不起作用 – HENCHAT https://chaifeng.com/to-fix-ufw-and-docker-security-flaw-without-disabling-iptables/#comment-937819 Tue, 15 Sep 2020 10:34:33 +0000 https://chaifeng.com/?p=1509#comment-937819 […] 还是希望保留Docker写iptables的功能:https://chaifeng.com/to-fix-ufw-and-docker-security-flaw-without-disabling-iptables/ […]

]]>
Comment on 为什么 Bash 脚本总是不稳定? by 为 Bash 脚本写单元测试 | 三分热度://柴锋 https://chaifeng.com/bash-sucks/#comment-937213 Fri, 21 Aug 2020 23:03:31 +0000 https://chaifeng.com/?p=1569#comment-937213 […] Bash 脚本写了单元测试后,我们可能还会遇到为什么 Bash 脚本总是不稳定?难道真的是 Bash 不严禁不稳定吗?另外还有《关于 Bash 的 10 […]

]]>
Comment on 关于 Bash 的 10 个常见误解 by 为什么 Bash 脚本总是不稳定? | 三分热度://柴锋 https://chaifeng.com/misunderstandings-about-bash/#comment-937068 Tue, 18 Aug 2020 11:43:56 +0000 https://chaifeng.com/?p=1535#comment-937068 […] Bash 脚本很难维护,在《关于 Bash 的 10 个常见误解》里面有提到,其实是很多人对于 Bash 的语法就根本不熟悉。连最常用的 if […]

]]>
Comment on DevOps 技术栈 by 为什么 Bash 脚本总是不稳定? | 三分热度://柴锋 https://chaifeng.com/devops-tech-stack/#comment-937067 Tue, 18 Aug 2020 11:30:39 +0000 https://chaifeng.com/?p=1466#comment-937067 […] 要想了解运维工作的知识体系以及技术脉络请看DevOps 技术栈。再看看你是否也有关于 Bash 的 10 个常见误解?要想写出可靠稳定的 Bash 脚本,那一定要写Bash 脚本的单元测试。 […]

]]>
Comment on 为 Bash 脚本写单元测试 by 为什么 Bash 脚本总是不稳定? | 三分热度://柴锋 https://chaifeng.com/unit-testing-bash-scripts/#comment-937066 Tue, 18 Aug 2020 11:28:38 +0000 https://chaifeng.com/?p=1547#comment-937066 […] 写过很多 Bash 脚本的人都知道,Bash 的坑不是一般的多[^](https://zhuanlan.zhihu.com/p/123989641)。所以大家都认可应该用 Python 而不是 Bash 的一个理由就是 Bash 脚本不可靠,不仅运行不稳定,而且还很难维护。关于 Bash 脚本很难维护,在《[关于 Bash 的 10 个常见误解](https://chaifeng.com/misunderstandings-about-bash/)》里面有提到,其实是很多人对于 Bash 的语法就根本不熟悉。连最常用的 if 表达式的语法都不甚了解,更何谈什么进程替代啊,或者来做Bash 脚本的单元测试呢?没有人会认为使用一个自己不熟悉的语言来做开发维护工作是一件容易的事情。 […]

]]>
Comment on 为 Bash 脚本写单元测试 by chaifeng https://chaifeng.com/unit-testing-bash-scripts/#comment-937064 Tue, 18 Aug 2020 11:22:11 +0000 https://chaifeng.com/?p=1547#comment-937064 In reply to 贾晨.

没问题,同意,谢谢!

]]>