On Saturday 14 of January 2012, Paweł Sikora wrote: > On Saturday 14 of January 2012 15:50:12 Paweł Sikora wrote: > > witam, > > > > jak juz pisalem na users, przestal mi dzialac suspend w kde. > > ztcw, to winny jest mksh, ktory wyklada sie na czyms takim: > > > > $ LANG=C /bin/mksh -x try.sh > > + lock=test.lock > > + touch test.lock > > + exec > > + 3<test.lock > > + flock -x -n 3 > > flock: 3: Bad file descriptor > > + exit 1 > > > > w zsh/bash dziala to zgodnie z opisem, a mksh ssie. > > > > http://pubs.opengroup.org/onlinepubs/007904975/utilities/exec.html > > zapomnialem zalacznika: > > #!/bin/mksh > > lock="test.lock" > touch "${lock}" > exec 3<"${lock}" > flock -x -n 3 || exit 1 > exit 0
Z manuala mksh: " File descriptors created by input/output redirections are private to the Korn shell, but passed to sub-processes if -o posix or -o sh is set." -- Arkadiusz Miśkiewicz PLD/Linux Team arekm / maven.pl http://ftp.pld-linux.org/ _______________________________________________ pld-devel-pl mailing list pld-devel-pl@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl