Logo
Explore Help
Sign In
pmodules/bash
Watch 0
Star 0
Fork 0
mirror of https://https.git.savannah.gnu.org/git/bash.git synced 2026-07-07 12:20:50 +02:00
Code Issues Packages Projects Releases Wiki Activity
Files
b805bbec801b3ac9adf1e67707b2d5bd3da9e60b
bash/examples/scripts/nohup.sh
T
Chet Ramey b805bbec80 new `jobid' loadable builtin like ash-based shells; fix for nofork command substitution when followed by an asynchronous subshell using GNU nohup; fix for nofork command substitution to move the file descriptor moved to the anonymous file out of the user-accessible range
2026-01-23 16:39:00 -05:00

13 lines
134 B
Bash
Raw Blame History

(
if [ -t 1 ]; then
exec 1>>nohup.out || exec 1>>~/nohup.out
fi
if [ -t 2 ]; then
exec 2>&1
fi
trap '' SIGHUP
exec "$@"
)
Reference in New Issue View Git Blame Copy Permalink
Powered by Gitea Version: 1.27.0+rc0 Page: 52ms Template: 1ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API