On 5/12/22 11:26, D. Hugh Redelmeier via talk wrote:
echo "$0: please use /usr/bin/python3 (or /usr/bin/python2 if you have to)" >2
Typo: ">&2" redirects stdout to stderr. ">2" writes to file "2".
---
Post to this mailing list talk@gtalug.org
Unsubscribe from this mailing list
| From: Dave Collier-Brown via talk
| In a life long ago, we'd have made /usr/bin/python a shell script, containing
|
| echo "please run /usr/bin/python3"
Bikeshedding for fun:
#!/bin/sh
echo "$0: please use /usr/bin/python3 (or /usr/bin/python2 if you have
to)" >2
On Wed, May 11, 2022 at 06:36:43PM -0400, Dave Collier-Brown via talk wrote:
> In a life long ago, we'd have made /usr/bin/python a shell script, containing
>
> echo "please run /usr/bin/python3"
I like it. :)
--
Len Sorensen
---
Post to this mailing list talk@gtalug.org
Unsubscribe from this
On Wed, May 11, 2022 at 06:04:43PM -0400, Giles Orr via talk wrote:
> That actually makes sense. Then the next one can be 'python4' without
> causing problems. But many distros - and many system administrators
> will probably just make it 'python'.
>
> Yup. Here's Fedora 35:
>
> $ which